diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-08-31 05:04:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-21 17:56:14 +0200 |
commit | ca5dfd1550a1b118e1c4f357c1d4409f11c3d2cc (patch) | |
tree | 3245928df1dbdb4c227a6f587260c19e5f138147 /libavcodec/h264.c | |
parent | 1979a9b4f205d9446c3e11353b57b5d9bd3dad4e (diff) | |
download | ffmpeg-ca5dfd1550a1b118e1c4f357c1d4409f11c3d2cc.tar.gz |
h264: clean all non null elements of delayed_pic[]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 66ce282df54edb33515d9ef3015b737428b6e0c3)
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3a1fa02998..3701bc9b73 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2233,7 +2233,7 @@ static void idr(H264Context *h){ static void flush_dpb(AVCodecContext *avctx){ H264Context *h= avctx->priv_data; int i; - for(i=0; i<MAX_DELAYED_PIC_COUNT; i++) { + for(i=0; i<=MAX_DELAYED_PIC_COUNT; i++) { if(h->delayed_pic[i]) h->delayed_pic[i]->reference= 0; h->delayed_pic[i]= NULL; |