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

Mark Thompson sw at jkqxz.net
Thu Sep 14 11:27:10 EEST 2017


On 14/09/17 05:35, James Almer wrote:
> 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.

Fixed.

Thanks!

- Mark


More information about the ffmpeg-devel mailing list