Le primidi 21 frimaire, an CCXIX, Thomas Worth a écrit :
> if (oc->oformat->flags & AVFMT_RAWPICTURE) {
> /* raw video case. The API will change slightly in the near
> futur for that */Did you read that comment? > pkt.data= (uint8_t *)picture; > pkt.size= sizeof(AVPicture); > Why is pkt.size set to sizeof(AVPicture)? Because pkt.data is picture, and sizeof(picture) == sizeof(AVPicture). pkt.size is unused anyway in this case. > If use the code in my app unmodified You did not use the code unmodified, as you already trimmed the else clause. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
