libswscale/utils: Fix bayer to yuvj
Fixes: out of array access.
Earlier code assumes that a unscaled bayer to yuvj420 converter exists
but the later code then skips yuvj420
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e9cc9e492f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
22eee37d23
commit
2c2dbde45e
1 changed files with 1 additions and 1 deletions
|
|
@ -1816,7 +1816,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
|
|||
/* unscaled special cases */
|
||||
if (unscaled && !usesHFilter && !usesVFilter &&
|
||||
(c->srcRange == c->dstRange || isAnyRGB(dstFormat) ||
|
||||
isFloat(srcFormat) || isFloat(dstFormat))){
|
||||
isFloat(srcFormat) || isFloat(dstFormat) || isBayer(srcFormat))){
|
||||
ff_get_unscaled_swscale(c);
|
||||
|
||||
if (c->swscale) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue