Commit d9ced9fe authored by Michael Niedermayer's avatar Michael Niedermayer

h264: init prev_frame_num to -1 on init

Fixes Ticket711
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6287a356
...@@ -1156,6 +1156,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){ ...@@ -1156,6 +1156,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){
for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++) for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++)
h->last_pocs[i] = INT_MIN; h->last_pocs[i] = INT_MIN;
h->prev_poc_msb= 1<<16; h->prev_poc_msb= 1<<16;
h->prev_frame_num= -1;
h->x264_build = -1; h->x264_build = -1;
ff_h264_reset_sei(h); ff_h264_reset_sei(h);
if(avctx->codec_id == CODEC_ID_H264){ if(avctx->codec_id == CODEC_ID_H264){
......
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