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

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

Details

Message ID DB8PR03MB5898821728E897168B191324AC330@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>

---
 libavcodec/rkmppdec.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1

Patch hide | download patch | download mbox

diff --git a/libavcodec/rkmppdec.c b/libavcodec/rkmppdec.c
index 143d05bd51..3ea64d867e 100644
--- a/libavcodec/rkmppdec.c
+++ b/libavcodec/rkmppdec.c
@@ -419,6 +419,7 @@  static int rkmpp_retrieve_frame(AVCodecContext *avctx, AVFrame *frame)
                 goto fail;
             }
 
+            desc->format = drmformat;
             desc->nb_objects = 1;
             desc->objects[0].fd = mpp_buffer_get_fd(buffer);
             desc->objects[0].size = mpp_buffer_get_size(buffer);