Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 05:19:55 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-07-03 05:31:06 +0400
commit5a1bbb3af0556d8d126b3f4003971f436c500e87 (patch)
treef938d82da2404db9b937bd556307dcdb5e9cff17 /libavcodec/dsputil.c
parentbb6effe0598d1ab1114d3f8a230fda5f66e81b17 (diff)
dsputil: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 442b9005f8..9b32dff117 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -3148,6 +3148,7 @@ 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);
break;
}