[FFmpeg-devel] [PATCH] libswscale/swscale_unscaled: fix DITHER_COPY macro

Michael Niedermayer michael at niedermayer.cc
Tue Sep 5 16:40:31 EEST 2017


On Mon, Sep 04, 2017 at 09:33:34AM +0200, Mateusz wrote:
> If ffmpeg reduces bit-depth to 8-bit or more, it uses DITHER_COPY macro.
> The problem is DITHER_COPY macro make images darker (on all planes).
> 
> In x265 project there is issue #365 which is caused by this DITHER_COPY bug.
> I think it is time to fix -- there are more and more high bit-depth sources.
> 
> Please review.
> 
>  libswscale/swscale_unscaled.c | 44 +++++++++++++------------------------------
>  1 file changed, 13 insertions(+), 31 deletions(-)

please provide a git compatible patch with with commit message as produced
by git format-patch or git send-email

this mail is not accepted as is by git
Applying: libswscale/swscale_unscaled: fix DITHER_COPY macro
error: corrupt patch at line 6
error: could not build fake ancestor
Patch failed at 0001 libswscale/swscale_unscaled: fix DITHER_COPY macro

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170905/fccaccdf/attachment.sig>


More information about the ffmpeg-devel mailing list