[vlc-commits] transcode: video: patch missing chroma in decoder format ouput

Francois Cartegnie git at videolan.org
Tue Aug 13 11:41:01 CEST 2019


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 13 11:27:14 2019 +0200| [b956711754000233a9ef0f36610f7805241ca458] | committer: Francois Cartegnie

transcode: video: patch missing chroma in decoder format ouput

(cherry picked from commit ef647f9a101cf281b59544555bba3a2d7d43d58c)

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

 NEWS                                 | 3 +++
 modules/stream_out/transcode/video.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 16a3ebc868..e75b106bf1 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@ Audio output:
    external audio devices (bluetooth for example)
  * macOS: Fix AV synchronization when using external audio devices
 
+Stream output:
+ * Fix transcoding when the decoder does not set the chroma
+
 Security:
  * Fix a couple of integer underflows in the MP4 demuxer
 
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index b6fabead48..9070babb2d 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -61,6 +61,9 @@ static int video_update_format_decoder( decoder_t *p_dec )
         .sys = sys,
     };
 
+    /* will need proper chroma for get_buffer */
+    p_dec->fmt_out.video.i_chroma = p_dec->fmt_out.i_codec;
+
     if( id->p_encoder->fmt_in.i_codec == p_dec->fmt_out.i_codec ||
         video_format_IsSimilar( &id->video_dec_out,
                                 &p_dec->fmt_out.video ) )



More information about the vlc-commits mailing list