Skip to content
Snippets Groups Projects
Commit 71c689e8 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

dsputil: turn assert into if() as its possible to trigger with ffv1

parent 73077464
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment