aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-09-14 09:14:36 +0100
committerMark Thompson <sw@jkqxz.net>2017-09-14 09:14:36 +0100
commit16b44d9ab9fd81e4dfc5631a5fbc081b564f1037 (patch)
tree3fa243f8b9b78ceae27fb81d1d50d8ea2edb5497
parent6561cdd70c55cb45fb8ef75269be77936456a02e (diff)
downloadffmpeg-16b44d9ab9fd81e4dfc5631a5fbc081b564f1037.tar.gz
lavd/kmsgrab: Fix packet flag setting
Found-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavdevice/kmsgrab.c8
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;
}