diff h264.c @ 7397:535664ced6f0 libavcodec

Do not scare the user with error messages when everything is ok.
author michael
date Fri, 25 Jul 2008 14:52:58 +0000
parents 9f765ea6d6df
children bcede7e06618
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 14:00:01 2008 +0000
+++ b/h264.c	Fri Jul 25 14:52:58 2008 +0000
@@ -3460,6 +3460,8 @@
             frame_num = pic_num_extract(h, mmco[i].short_pic_num, &structure);
             pic = find_short(h, frame_num, &j);
             if(!pic){
+                if(mmco[i].opcode != MMCO_SHORT2LONG || !h->long_ref[mmco[i].long_arg]
+                   || h->long_ref[mmco[i].long_arg]->frame_num != frame_num)
                 av_log(h->s.avctx, AV_LOG_ERROR, "mmco: unref short failure\n");
                 continue;
             }