dsputil: turn assert into if() as its possible to trigger with ffv1
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jul 2012 12:21:06 +0000 (14:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jul 2012 12:24:10 +0000 (14:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dsputil.c

index 05140e3..3577926 100644 (file)
@@ -3176,8 +3176,9 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
         }
         break;
     default:
-        av_assert0(avctx->bits_per_raw_sample<=8 || avctx->codec_type != AVMEDIA_TYPE_VIDEO);
-        BIT_DEPTH_FUNCS(8, _16);
+        if(avctx->bits_per_raw_sample<=8 || avctx->codec_type != AVMEDIA_TYPE_VIDEO) {
+            BIT_DEPTH_FUNCS(8, _16);
+        }
         break;
     }