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

Submitted by Jonas Karlman on May 9, 2019, 7:41 p.m.

Details

Message ID DB8PR03MB58989ECE5B3C76EBF4BFCBCFAC330@DB8PR03MB5898.eurprd03.prod.outlook.com
State New
Headers show

Commit Message

Jonas Karlman May 9, 2019, 7:41 p.m.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>

---
 libavdevice/kmsgrab.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1

Patch hide | download patch | download mbox

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();