aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-31 05:04:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-31 05:04:14 +0200
commit66ce282df54edb33515d9ef3015b737428b6e0c3 (patch)
tree2f1e58dad2a41ebf6a9bdd0073ea54db8038beee
parentb955ab2f492e3b8c4cbf614f68f8d5bf79e1d1e1 (diff)
downloadffmpeg-66ce282df54edb33515d9ef3015b737428b6e0c3.tar.gz
h264: clean all non null elements of delayed_pic[]
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 28932599e0..118334ad7c 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;