[vlc-commits] sout: transcode: ensure audio format=codec on probing

Francois Cartegnie git at videolan.org
Tue Feb 12 23:27:31 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 12 23:09:11 2019 +0100| [e1d6bc0543ed610f341f45631195c2a379b6291b] | committer: Francois Cartegnie

sout: transcode: ensure audio format=codec on probing

refs #21917

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

 modules/stream_out/transcode/encoder/audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/stream_out/transcode/encoder/audio.c b/modules/stream_out/transcode/encoder/audio.c
index 64f311e961..6571663abd 100644
--- a/modules/stream_out/transcode/encoder/audio.c
+++ b/modules/stream_out/transcode/encoder/audio.c
@@ -191,6 +191,8 @@ int transcode_encoder_audio_test( vlc_object_t *p_obj,
         module_unneed( p_encoder, p_module );
     }
 
+    p_encoder->fmt_in.audio.i_format = p_encoder->fmt_in.i_codec;
+
     /* copy our requested format */
     es_format_Copy( p_enc_wanted_in, &p_encoder->fmt_in );
 



More information about the vlc-commits mailing list