[vlc-commits] MP4: support for more codecs in mp4

Jean-Baptiste Kempf git at videolan.org
Tue Mar 27 23:26:24 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar 27 22:20:52 2012 +0200| [3d96a1aba6b31f1b0a70805989105073d24f5f43] | committer: Jean-Baptiste Kempf

MP4: support for more codecs in mp4

According to http://www.mp4ra.org/object.html (not tested)

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

 modules/demux/mp4/mp4.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index ddd131f..7ce346b 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1852,6 +1852,9 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
             case( 0x20 ): /* MPEG4 VIDEO */
                 p_track->fmt.i_codec = VLC_FOURCC( 'm','p','4','v' );
                 break;
+            case( 0x21 ): /* H.264 */
+                p_track->fmt.i_codec = VLC_CODEC_H264;
+                break;
             case( 0x40):
                 p_track->fmt.i_codec = VLC_FOURCC( 'm','p','4','a' );
                 if( p_decconfig->i_decoder_specific_info_len >= 2 &&
@@ -1891,12 +1894,21 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
             case( 0x6d ): /* png */
                 p_track->fmt.i_codec = VLC_FOURCC( 'p','n','g',' ' );
                 break;
-            case( 0x6e ): /* jpeg200 */
+            case( 0x6e ): /* jpeg2000 */
                 p_track->fmt.i_codec = VLC_FOURCC( 'M','J','2','C' );
                 break;
             case( 0xa3 ): /* vc1 */
                 p_track->fmt.i_codec = VLC_FOURCC( 'W','V','C','1' );
                 break;
+            case( 0xa4 ):
+                p_track->fmt.i_codec = VLC_CODEC_DIRAC;
+                break;
+            case( 0xa5 ):
+                p_track->fmt.i_codec = VLC_CODEC_A52;
+                break;
+            case( 0xa6 ):
+                p_track->fmt.i_codec = VLC_CODEC_EAC3;
+                break;
             case( 0xa9 ): /* dts */
             case( 0xaa ): /* DTS-HD HRA */
             case( 0xab ): /* DTS-HD Master Audio */



More information about the vlc-commits mailing list