[vlc-devel] [PATCH 6/6] codec: avcodec: copy the source mastering/light level into the output

Steve Lhomme robux4 at videolabs.io
Thu Mar 30 11:20:03 CEST 2017


---
 modules/codec/avcodec/video.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index f49e82db2f..d630abd1bf 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -303,6 +303,8 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
     dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;
     dec->fmt_out.video.projection_mode = dec->fmt_in.video.projection_mode;
     dec->fmt_out.video.pose = dec->fmt_in.video.pose;
+    dec->fmt_out.video.mastering = dec->fmt_in.video.mastering;
+    dec->fmt_out.video.ligthing = dec->fmt_in.video.ligthing;
     return decoder_UpdateVideoFormat(dec);
 }
 
-- 
2.11.1



More information about the vlc-devel mailing list