[FFmpeg-devel] [PATCH 4/4] kmsgrab: Set AVDRMFrameDescriptor.format

Jonas Karlman jonas at kwiboo.se
Thu May 9 22:41:29 EEST 2019


Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
---
 libavdevice/kmsgrab.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c
index d0de774871..1ebc30ea92 100644
--- a/libavdevice/kmsgrab.c
+++ b/libavdevice/kmsgrab.c
@@ -162,6 +162,7 @@ static int kmsgrab_read_packet(AVFormatContext *avctx, AVPacket *pkt)
                 .pitch        = fb->pitch,
             },
         },
+        .format = ctx->drm_format,
     };
 
     frame = av_frame_alloc();
-- 
2.17.1



More information about the ffmpeg-devel mailing list