[FFmpeg-cvslog] h264: clean all non null elements of delayed_pic[]

Michael Niedermayer git at videolan.org
Wed Aug 31 05:21:42 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 31 05:04:14 2011 +0200| [66ce282df54edb33515d9ef3015b737428b6e0c3] | committer: Michael Niedermayer

h264: clean all non null elements of delayed_pic[]

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66ce282df54edb33515d9ef3015b737428b6e0c3
---

 libavcodec/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 2893259..118334a 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2241,7 +2241,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]->f.reference = 0;
         h->delayed_pic[i]= NULL;



More information about the ffmpeg-cvslog mailing list