Ever wonder where "The Avengers" director Joss Whedon got the idea for his infamous post-credit scene from Marvel Studio's hit film? Wonder no more! The writer-director revealed the source of his inspiration for the scene at last month's Comic-Con International in San Diego.

During Dark Horse Comics' "Conversations with Joss Whedon" panel in Hall H, one fan asked Whedon about his favorite death scene. Admitting it to be the death of Fred (Amy Acker) from the television show "Angel," Whedon revealed how the origins of the Shawarma scene came from filming that particularly long, emotional scene.

RELATED: SDCC: Conversations with Joss Whedon

Whedon recalled the the death scene, which took place in the 15th episode of "Angel" Season 5, during the SDCC panel. "The scene itself was really exciting. I love Alexis [Denisof] and Amy [Acker]. They were just acting their hearts out," he shared. "At the end of that whole day was just them in her bedroom as she's getting sicker and sicker, and finally dying in his arms."

After the emotionally draining scene, the three of them went out for drinks and ended up just sitting around quietly, exhausted from the day's events. "And that's how I came up with the Avengers tag," Whedon concluded.