From 16b44d9ab9fd81e4dfc5631a5fbc081b564f1037 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Thu, 14 Sep 2017 09:14:36 +0100 Subject: [PATCH] lavd/kmsgrab: Fix packet flag setting Found-by: James Almer --- libavdevice/kmsgrab.c | 8 ++++---- 1 file 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; }