[FFmpeg-devel] [PATCH] Fix chroma positioning for 4:2:0 pixel format

Michael Niedermayer michael at niedermayer.cc
Tue Feb 7 22:31:38 EET 2017


On Mon, Feb 06, 2017 at 05:14:14PM +0200, Maksym Veremeyenko wrote:
> Hi,
> 
> Attached patch fixes chroma positioning during scaling interlaced 4:2:0.
> 
> On a first iteration default context value been overwritten by new
> value and not been update on next iterations for fields. This mean
> that vertical chroma position remain 128 for field#0 and field#1
> instead of *64* and *192*.
> 
> Attached patch use local variable for storing this intermediate
> value of chroma vertical position not modifying default context
> value.
> 
> -- 
> Maksym Veremeyenko
> 

>  vf_scale.c |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 6a3a3966939dd87c45a8e124b0364da30b02728b  0001-Fix-chroma-positioning-for-4-2-0-pixel-format.patch
> From 912ecf538b6b2f7a8df4afdfed2d34052162335c Mon Sep 17 00:00:00 2001
> From: Maksym Veremeyenko <verem at m1.tv>
> Date: Mon, 6 Feb 2017 17:03:17 +0200
> Subject: [PATCH] Fix chroma positioning for 4:2:0 pixel format

applied

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- 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/20170207/5087f960/attachment.sig>


More information about the ffmpeg-devel mailing list