]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_refs.c
indeo3: Fix null ptr dereference
[ffmpeg] / libavcodec / h264_refs.c
index c75cbf11e5734f5b3455d26990da871055b4ef02..cdc1fca1a0fa2ee86b5c18910c82c891ea609d5f 100644 (file)
@@ -586,6 +586,8 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
             s->current_picture_ptr->frame_num= 0;
             h->mmco_reset = 1;
             s->current_picture_ptr->mmco_reset=1;
+            for (j = 0; j < MAX_DELAYED_PIC_COUNT; j++)
+                h->last_pocs[j] = INT_MIN;
             break;
         default: assert(0);
         }