diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-05 04:39:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-05 04:39:11 +0200 |
commit | 9b2b57681cd6a9d183465974174e504d76f51ee8 (patch) | |
tree | 1ba149e3fb9c0001ac6c84a47dc1017855847d81 | |
parent | a32032b508d77096a7d7a5fd68139a1f9f746d00 (diff) | |
download | ffmpeg-9b2b57681cd6a9d183465974174e504d76f51ee8.tar.gz |
sws/x86: add av_assert() to ensure 16bit code is used with 16bit data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswscale/x86/swscale_mmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/x86/swscale_mmx.c b/libswscale/x86/swscale_mmx.c index 5dd928ada3..86576bd6ec 100644 --- a/libswscale/x86/swscale_mmx.c +++ b/libswscale/x86/swscale_mmx.c @@ -396,6 +396,7 @@ void ff_sws_init_swScale_mmx(SwsContext *c) hscalefn = c->dstBpc <= 14 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \ ff_hscale14to19_ ## filtersize ## _ ## opt1; \ } else { /* c->srcBpc == 16 */ \ + av_assert0(c->srcBpc == 16);\ hscalefn = c->dstBpc <= 14 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \ ff_hscale16to19_ ## filtersize ## _ ## opt1; \ } \ |