[FFmpeg-devel] [PATCH 5/5] lavd: Add KMS frame grabber

James Almer jamrial at gmail.com
Thu Sep 14 07:35:09 EEST 2017


On 9/7/2017 6:56 PM, Mark Thompson wrote:
> +    pkt->data  = (uint8_t*)frame;
> +    pkt->size  = sizeof(*frame);
> +    pkt->pts   = now;
> +    pkt->flags = AV_PKT_FLAG_TRUSTED;

pkt->flags |= AV_PKT_FLAG_TRUSTED;

I know pkt->flags is zeroed by default, but that may change in the
future. And ORing/XORing is the proper way to set flags anyway.


More information about the ffmpeg-devel mailing list