diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-09-14 09:14:36 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-09-14 09:14:36 +0100 |
commit | 16b44d9ab9fd81e4dfc5631a5fbc081b564f1037 (patch) | |
tree | 3fa243f8b9b78ceae27fb81d1d50d8ea2edb5497 | |
parent | 6561cdd70c55cb45fb8ef75269be77936456a02e (diff) | |
download | ffmpeg-16b44d9ab9fd81e4dfc5631a5fbc081b564f1037.tar.gz |
lavd/kmsgrab: Fix packet flag setting
Found-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavdevice/kmsgrab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c index d0b9cf5001..d222abfd60 100644 --- a/libavdevice/kmsgrab.c +++ b/libavdevice/kmsgrab.c @@ -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; } |