On Sun, Dec 12, 2010 at 2:18 AM, Nicolas George <[email protected]> wrote: > Le duodi 22 frimaire, an CCXIX, Thomas Worth a écrit : >> I don't understand. I can't get sizeof(AVPicture) to return anything >> other than 32. > > Of course, a sizeof is a build-time constant. But if AVFMT_RAWPICTURE is > set, then pkt.size is not used anyway.
So then why is this value even set? I think this is clearly wrong, as it is being set to 32 every time. I know the comments say this section will change, but I am just trying to get some confirmation one way or another. > Alternate question: what is the exact output format you are using? The wrapper/container is QuickTime. Perhaps MOV requires pkt.size. Is it possible this is wrapper-dependent? >> I have this working, but I just want to know why the pkt.size is being >> set to the size of definition of AVPicture. > > As as said: because pkt.data points to the AVFrame itself and not the image > data. pkt.size is the size of whatever is pointed to by pkt.data. Yes, I know that because linesize is also needed. But it is not pointing to the struct itself, it is pointing to the struct definition which is always 32. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
