[Libav-user] Convert from YUYV to YUV420P

Jorge gusa.mlbb at gmail.com
Mon Apr 4 14:53:14 CEST 2011


Hi:

First of all thank you for your answers.

Could you tell me why is it wrong?

count is used to read and write from/to the file so in YUY2 each pixel has 2
bytes (is YUYV) so I have to read for each pixel 2 bytes.

What is wrong and how could I fix it?

Regards

Jorge

2011/4/4 Jeremy Mordkoff <jlm at zeevee.com>

>  This looks wrong
>
>
> On Mon, 2011-04-04 at 10:45 +0200, Jorge wrote:
>
>    int count = width * height * 2;
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110404/74e94701/attachment.html>


More information about the Libav-user mailing list