avcodec/libdcadec: honor -err_detect option
authorfoo86 <foobaz86@gmail.com>
Mon, 7 Dec 2015 15:48:53 +0000 (18:48 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Dec 2015 02:37:04 +0000 (03:37 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libdcadec.c

index 8e3bc61..79fa331 100644 (file)
@@ -225,6 +225,9 @@ static av_cold int dcadec_init(AVCodecContext *avctx)
     if (avctx->flags & AV_CODEC_FLAG_BITEXACT)
         flags |= DCADEC_FLAG_CORE_BIT_EXACT;
 
+    if (avctx->err_recognition & AV_EF_EXPLODE)
+        flags |= DCADEC_FLAG_STRICT;
+
     if (avctx->request_channel_layout) {
         switch (avctx->request_channel_layout) {
         case AV_CH_LAYOUT_STEREO: