mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
h264: reset first_field when current_picture_ptr is reset
Fixes NULL pointer dereference Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f8bab2f87e
commit
b53adef07b
@ -4287,6 +4287,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
|
||||
out:
|
||||
|
||||
s->current_picture_ptr = NULL;
|
||||
s->first_field = 0;
|
||||
|
||||
// FIXME factorize this with the output code below
|
||||
out = h->delayed_pic[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user