[FFmpeg-cvslog] avcodec/libdcadec: honor -err_detect option

foo86 git at videolan.org
Tue Dec 8 03:56:57 CET 2015


ffmpeg | branch: master | foo86 <foobaz86 at gmail.com> | Mon Dec  7 18:48:53 2015 +0300| [ff6dd5851bffe9518f2e814a2f4892f0aa4fd6f9] | committer: Michael Niedermayer

avcodec/libdcadec: honor -err_detect option

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff6dd5851bffe9518f2e814a2f4892f0aa4fd6f9
---

 libavcodec/libdcadec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/libdcadec.c b/libavcodec/libdcadec.c
index 8e3bc61..79fa331 100644
--- a/libavcodec/libdcadec.c
+++ b/libavcodec/libdcadec.c
@@ -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:



More information about the ffmpeg-cvslog mailing list