[FFmpeg-cvslog] dsputil: assert that depth is supported
Michael Niedermayer
git at videolan.org
Tue Jul 3 04:08:15 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 3 03:19:55 2012 +0200| [5a1bbb3af0556d8d126b3f4003971f436c500e87] | committer: Michael Niedermayer
dsputil: assert that depth is supported
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a1bbb3af0556d8d126b3f4003971f436c500e87
---
libavcodec/dsputil.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 442b900..9b32dff 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;
}
More information about the ffmpeg-cvslog
mailing list