mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
Mp3On4 demuxer support
Patch by Larry Ruedisueli lwr at audioresearchlabs dot com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14707 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d2e4443de6
commit
a6c469e97f
@ -2252,6 +2252,13 @@ audiocodec ffsonic
|
||||
driver ffmpeg
|
||||
dll "sonic"
|
||||
|
||||
audiocodec ffmp3on4
|
||||
info "FFmpeg Multi-channel MPEG layer-3 on MP4 audio decoder"
|
||||
status working
|
||||
format 0x1d61346d ; 'm','4','a',29 internal MPlayer fourcc
|
||||
driver ffmpeg
|
||||
dll "mp3on4"
|
||||
|
||||
audiocodec ffmp3
|
||||
info "FFmpeg MPEG layer-3 audio decoder"
|
||||
comment "integer only"
|
||||
|
@ -973,6 +973,8 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
|
||||
// dump away the codec specific configuration for the AAC decoder
|
||||
if(esds.decoderConfigLen){
|
||||
if( (esds.decoderConfig[0]>>3) == 29 )
|
||||
sh->format = 0x1d61346d; // request multi-channel mp3 decoder
|
||||
sh->codecdata_len = esds.decoderConfigLen;
|
||||
sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
|
||||
memcpy(sh->codecdata, esds.decoderConfig, sh->codecdata_len);
|
||||
|
Loading…
Reference in New Issue
Block a user