avcodec/h264: Clear delayed_pic on deallocation
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Dec 2014 20:27:37 +0000 (21:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:28:34 +0000 (18:28 +0100)
commit3353a00d58e26806c7e693d0a524987aac722d90
treeb9cc453efdfc76476184435874b2bbcc6b1f40ee
parentb052ea0f5b62341861d9faea0d440f133790a89f
avcodec/h264: Clear delayed_pic on deallocation

Fixes use of freed memory

Fixes: case5_av_frame_copy_props.mp4
Found-by: Michal Zalewski <lcamtuf@coredump.cx>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e8714f6f93d1a32f4e4655209960afcf4c185214)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c