[vlc-commits] MP4: more fourcc replacements
Jean-Baptiste Kempf
git at videolan.org
Fri Apr 6 01:16:08 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 6 00:15:09 2012 +0200| [1b283ecd6a021d6ec2a97ca41e51173193192a61] | committer: Jean-Baptiste Kempf
MP4: more fourcc replacements
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b283ecd6a021d6ec2a97ca41e51173193192a61
---
modules/demux/mp4/mp4.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 1f132bf..b1f546b 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1988,11 +1988,14 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_track->fmt.i_extra);
}
break;
- case VLC_FOURCC( 's', 'a', 'm', 'r' ):
+
+ case VLC_CODEC_AMR_NB:
p_track->fmt.audio.i_rate = 8000;
+ case VLC_CODEC_AMR_WB:
+ p_track->fmt.audio.i_rate = 16000;
case VLC_FOURCC( 'Q', 'D', 'M', 'C' ):
- case VLC_FOURCC( 'Q', 'D', 'M', '2' ):
- case VLC_FOURCC( 'a', 'l', 'a', 'c' ):
+ case VLC_CODEC_QDM2:
+ case VLC_CODEC_ALAC:
p_track->fmt.i_extra =
p_sample->data.p_sample_soun->i_qt_description;
if( p_track->fmt.i_extra > 0 )
@@ -2026,9 +2029,9 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
break;
}
- case VLC_FOURCC('m','s',0x00,0x02):
- case VLC_FOURCC('m','s',0x00,0x11):
- case VLC_FOURCC('Q','c','l','p'):
+ case VLC_CODEC_ADPCM_MS:
+ case VLC_CODEC_ADPCM_IMA_WAV:
+ case VLC_CODEC_QCELP:
p_track->fmt.audio.i_blockalign = p_sample->data.p_sample_soun->i_bytes_per_frame;
break;
More information about the vlc-commits
mailing list