On 01/02/2010, at 8:13 AM, Thomas Worth wrote:
There is additional data at the end of each line of an AVFrame, (I
assume
AVPicture is the same) so we
cannot use width as the multiplier.
Is that why linesize[0] returns a value that is longer than the width
of the frame? I tried substituting the width for linesize[0], but that
screwed things up.
I do not know what is stored at the end of the line. I assume that
it's simply padding for codec optimisation.
I work a lot with another YUV planar based library, (mjpegutils) which
has no padding. At first I tried doing a memcpy of the entire frame
buffer from libav to the other without success. I just had to
remember this as I work more with mjpegutils.
Mark
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user