Commit b53adef0 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f8bab2f8
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment