You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
swscale/swscale_unscaled: avoid nv12 <-> nv21 bug
This is not handled by the planar copy wrapper, so exclude it.
This commit is contained in:
@ -2660,7 +2660,8 @@ void ff_get_unscaled_swscale(SwsInternal *c)
|
||||
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
|
||||
c->chrDstHSubSample == c->chrSrcHSubSample &&
|
||||
c->chrDstVSubSample == c->chrSrcVSubSample &&
|
||||
isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
|
||||
isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat) &&
|
||||
isSwappedChroma(srcFormat) == isSwappedChroma(dstFormat))))
|
||||
{
|
||||
if (isPacked(c->opts.src_format))
|
||||
c->convert_unscaled = packedCopyWrapper;
|
||||
|
Reference in New Issue
Block a user