should be * 4 I think. The suggestion to use swscale seems like a good one to me.
JLM On Mon, 2011-04-04 at 14:53 +0200, Jorge wrote: > 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 <[email protected]> > > This looks wrong > > > > On Mon, 2011-04-04 at 10:45 +0200, Jorge wrote: > > > int count = width * height * 2; > > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > > > > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
