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>
Wed, 17 Dec 2014 21:14:34 +0000 (22:14 +0100)
commita9c77e5c227bc8c23778def2f7180b987d4da5c5
treeed932117e9eb65b77aa1705d8c0db1fbffcb1b1a
parentde882ec2b15f02eed000f1ee357ab81344b18684
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