diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 22:41:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-07 00:47:41 +0100 |
commit | d9ced9fec63e7363a52e4b2e7c3f7d2197256f38 (patch) | |
tree | 565a5abd919f52e128e2759d1238d108b3ac9a14 /libavcodec | |
parent | 6287a356e335163581b8b8dca71cdc42f9b739d8 (diff) | |
download | ffmpeg-d9ced9fec63e7363a52e4b2e7c3f7d2197256f38.tar.gz |
h264: init prev_frame_num to -1 on init
Fixes Ticket711
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index cb7e24961c..3bf3605e66 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1156,6 +1156,7 @@ av_cold int ff_h264_decode_init(AVCodecContext *avctx){ for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++) h->last_pocs[i] = INT_MIN; h->prev_poc_msb= 1<<16; + h->prev_frame_num= -1; h->x264_build = -1; ff_h264_reset_sei(h); if(avctx->codec_id == CODEC_ID_H264){ |