mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
sws/x86: add av_assert() to ensure 16bit code is used with 16bit data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a32032b508
commit
9b2b57681c
@ -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; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user