h264: hide reference frame errors unless requested
authorDustin Brody <libav@parsoma.net>
Wed, 17 Aug 2011 22:08:09 +0000 (18:08 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 18 Aug 2011 03:56:54 +0000 (20:56 -0700)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/h264_refs.c

index b7e43e7..ce29caf 100644 (file)
@@ -655,7 +655,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
 
     print_short_term(h);
     print_long_term(h);
-    return err;
+    return h->s.avctx->error_recognition >= FF_ER_EXPLODE ? err : 0;
 }
 
 int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb){