[vlc-commits] mp4 demux: use defines for (e)ac-3

Rafaël Carré git at videolan.org
Wed Sep 3 13:15:58 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Sep  3 13:15:47 2014 +0200| [06d9da9869cb6f279dfe207471b6b4f7521dcd09] | committer: Rafaël Carré

mp4 demux: use defines for (e)ac-3

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

 modules/demux/mp4/mp4.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index aad554c..2185391 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2355,8 +2355,8 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
                             p_soun->i_qt_version = 0;
                         break;
                     }
-                case( VLC_FOURCC( 'a', 'c', '-', '3' ) ):
-                case( VLC_FOURCC( 'e', 'c', '-', '3' ) ):
+                case( ATOM_ac3 ):
+                case( ATOM_eac3 ):
                 case( VLC_FOURCC( 'm', 's', 0x20, 0x00 ) ):
                     p_soun->i_qt_version = 0;
                     break;
@@ -2424,7 +2424,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
             p_track->fmt.i_codec = VLC_CODEC_MPGA;
             break;
         }
-        case( VLC_FOURCC( 'e', 'c', '-', '3' ) ):
+        case( ATOM_eac3 ):
         {
             MP4_Box_t *p_dec3_box = MP4_BoxGet(  p_sample, "dec3", 0 );
 
@@ -2438,7 +2438,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
             }
             break;
         }
-        case( VLC_FOURCC( 'a', 'c', '-', '3' ) ):
+        case( ATOM_ac3 ):
         {
             MP4_Box_t *p_dac3_box = MP4_BoxGet(  p_sample, "dac3", 0 );
 



More information about the vlc-commits mailing list