[FFmpeg-cvslog] h264: clean all non null elements of delayed_pic[]
Michael Niedermayer
git at videolan.org
Wed Sep 21 21:08:28 CEST 2011
ffmpeg | branch: release/0.8 | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 31 05:04:14 2011 +0200| [ca5dfd1550a1b118e1c4f357c1d4409f11c3d2cc] | committer: Michael Niedermayer
h264: clean all non null elements of delayed_pic[]
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 66ce282df54edb33515d9ef3015b737428b6e0c3)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca5dfd1550a1b118e1c4f357c1d4409f11c3d2cc
---
libavcodec/h264.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3a1fa02..3701bc9 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;
More information about the ffmpeg-cvslog
mailing list