[vlc-commits] copy: fix invalid i_codec if not AUDIO_ES

Thomas Guillem git at videolan.org
Fri Dec 15 14:25:56 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Dec 15 14:22:28 2017 +0100| [c8e6769ab981a6c295751fa8774fbb384c075f45] | committer: Thomas Guillem

copy: fix invalid i_codec if not AUDIO_ES

Regression from 385765703e43f9c91ff8789ce303cc0822b7c165

Fixes #19280

(cherry picked from commit 5d53aa182293fced035b360d73864c89ed90b96e)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/packetizer/copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/copy.c b/modules/packetizer/copy.c
index 2ffa58c185..073a663ed8 100644
--- a/modules/packetizer/copy.c
+++ b/modules/packetizer/copy.c
@@ -105,7 +105,7 @@ static int Open( vlc_object_t *p_this )
         break;
     }
 
-    vlc_fourcc_t fcc = p_dec->fmt_out.i_codec;
+    vlc_fourcc_t fcc = p_dec->fmt_in.i_codec;
     /* Fix the value of the fourcc for audio */
     if( p_dec->fmt_in.i_cat == AUDIO_ES )
     {



More information about the vlc-commits mailing list