mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
lavd/kmsgrab: Fix packet flag setting
Found-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
6561cdd70c
commit
16b44d9ab9
@ -190,10 +190,10 @@ static int kmsgrab_read_packet(AVFormatContext *avctx, AVPacket *pkt)
|
||||
if (!pkt->buf)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
pkt->data = (uint8_t*)frame;
|
||||
pkt->size = sizeof(*frame);
|
||||
pkt->pts = now;
|
||||
pkt->flags = AV_PKT_FLAG_TRUSTED;
|
||||
pkt->data = (uint8_t*)frame;
|
||||
pkt->size = sizeof(*frame);
|
||||
pkt->pts = now;
|
||||
pkt->flags |= AV_PKT_FLAG_TRUSTED;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user