[FFmpeg-devel] [PATCH] huffyuv: do not decode/encode yuv colorspace with odd width

Paul B Mahol onemda at gmail.com
Fri Mar 23 12:52:58 CET 2012


On 3/23/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Mar 23, 2012 at 08:46:31AM +0000, Paul B Mahol wrote:
>> On 3/23/12, Michael Niedermayer <michaelni at gmx.at> wrote:
>> > On Fri, Mar 23, 2012 at 01:16:19AM +0000, Paul B Mahol wrote:
>> >>
>> >> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> >> ---
>> >>  libavcodec/huffyuv.c |   13 ++++++++++---
>> >>  1 files changed, 10 insertions(+), 3 deletions(-)
>> >
>> > applied
>> >
>> > Thanks
>>
>> I think this should be handled in nicer way.
>>
>> Is there any encoder/decoder which can make use of yuv4XY (X, Y < 4)
>> colorspace with odd width?
>
> for planar pixel formats there are codecs (jpeg for example) that
> can handle it

So it is problem only if decoder/encoder use packed pixel format(s),
and to handle this in nice way we need packed yuy2 pix_fmt in sws which
we already have as YUYV422.


More information about the ffmpeg-devel mailing list