[vlc-commits] codec: avcodec: keep the projection mode information from the demux

Adrien Maglo git at videolan.org
Thu Nov 10 10:34:36 CET 2016


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed May 25 11:45:21 2016 +0200| [7c2c55ac827d6a64d9488f2b50985786250eb4a0] | committer: Thomas Guillem

codec: avcodec: keep the projection mode information from the demux

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>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c2c55ac827d6a64d9488f2b50985786250eb4a0
---

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



More information about the vlc-commits mailing list