Fix memory leak in h264 decoder. allocated_edge_emu_buffer was being allocated
authorJeff Downs <heydowns@borg.com>
Mon, 28 Jan 2008 21:12:38 +0000 (21:12 +0000)
committerJeff Downs <heydowns@borg.com>
Mon, 28 Jan 2008 21:12:38 +0000 (21:12 +0000)
commit79db7ac6ef235a06c3049d7792eda39da28ee3fd
treeb3f4458f724d3da7978cb8c7902d8779fa260f8d
parent0b98a7b3b2b2cd9fe22cd693254544890b0d8fd9
Fix memory leak in h264 decoder. allocated_edge_emu_buffer was being allocated
in both mpegvideo and h264 decoder. Fixed by allowing all (master and duplicate)
contexts to fully initialize in MPV_frame_start and copying these into
H264Contexts.

Mailing list discussion:
[FFmpeg-devel] Memory leak in h264
Tue, 22 Jan 2008 15:22:55

Originally committed as revision 11657 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
libavcodec/mpegvideo.c