Commit 9b2b5768 authored by Michael Niedermayer's avatar Michael Niedermayer

sws/x86: add av_assert() to ensure 16bit code is used with 16bit data

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a32032b5
...@@ -396,6 +396,7 @@ void ff_sws_init_swScale_mmx(SwsContext *c) ...@@ -396,6 +396,7 @@ void ff_sws_init_swScale_mmx(SwsContext *c)
hscalefn = c->dstBpc <= 14 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \ hscalefn = c->dstBpc <= 14 ? ff_hscale14to15_ ## filtersize ## _ ## opt2 : \
ff_hscale14to19_ ## filtersize ## _ ## opt1; \ ff_hscale14to19_ ## filtersize ## _ ## opt1; \
} else { /* c->srcBpc == 16 */ \ } else { /* c->srcBpc == 16 */ \
av_assert0(c->srcBpc == 16);\
hscalefn = c->dstBpc <= 14 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \ hscalefn = c->dstBpc <= 14 ? ff_hscale16to15_ ## filtersize ## _ ## opt2 : \
ff_hscale16to19_ ## filtersize ## _ ## opt1; \ ff_hscale16to19_ ## filtersize ## _ ## opt1; \
} \ } \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment