[vlc-commits] ts demux: fix eac3 mistaken for ac3

Rafaël Carré git at videolan.org
Sun Apr 28 22:31:09 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Apr 28 22:25:51 2013 +0200| [c4bd513624d8a8a72bc7747d1143ebb1b140f8bb] | committer: Rafaël Carré

ts demux: fix eac3 mistaken for ac3

Close #8217

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

 modules/demux/ts.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 25c72e8..ae515de 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -3646,6 +3646,8 @@ static void PMTSetupEsRegistration( demux_t *p_demux, ts_pid_t *pid,
         {
             p_fmt->i_cat   = p_regs[i].i_cat;
             p_fmt->i_codec = p_regs[i].i_codec;
+            if (p_es->i_type == 0x87)
+                p_fmt->i_codec = VLC_CODEC_EAC3;
             return;
         }
     }



More information about the vlc-commits mailing list