[vlc-devel] [PATCH 11/16] codec: avcodec: keep the projection mode information from the demux

Thomas Guillem thomas at gllm.fr
Wed Nov 9 18:33:05 CET 2016


From: Adrien Maglo <magsoft at videolan.org>

We need to propagate the projection mode set by the demux so to the
output-format. These changes also remove a stray semicolon due to the proximity
of the change (related to the pertinent one).

Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
 modules/codec/avcodec/video.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index ff7a046..19442d4 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -289,7 +289,8 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
     es_format_Clean(&dec->fmt_out);
     es_format_Init(&dec->fmt_out, VIDEO_ES, fmt_out.i_chroma);
     dec->fmt_out.video = fmt_out;
-    dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;;
+    dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;
+    dec->fmt_out.video.projection_mode = dec->fmt_in.video.projection_mode;
     return decoder_UpdateVideoFormat(dec);
 }
 
-- 
2.9.3



More information about the vlc-devel mailing list