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.

> The else doesn't apply to what I'm doing in my code.

Obviously it does.

>                                                       The picture is
> always raw data, so  if (oc->oformat->flags & AVFMT_RAWPICTURE) always
> evaluates to 1.

Did you actually check?

Alternate question: what is the exact output format you are using?

> 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.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to