mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 02:52:10 +00:00
support for .mp4 with .mp3 audio
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6929 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
19704bb73a
commit
4831d9f8ad
@ -777,10 +777,16 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
|
||||
|
||||
sh->i_bps = esds.avgBitrate/8;
|
||||
|
||||
// printf("######## audio format = %d ########\n",esds.objectTypeId);
|
||||
if(esds.objectTypeId==107)
|
||||
sh->format=0x55; // .mp3
|
||||
|
||||
// dump away the codec specific configuration for the AAC decoder
|
||||
if(esds.decoderConfigLen){
|
||||
sh->codecdata_len = esds.decoderConfigLen;
|
||||
sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
|
||||
memcpy(sh->codecdata, esds.decoderConfig, sh->codecdata_len);
|
||||
}
|
||||
}
|
||||
mp4_free_esds(&esds); // freeup esds mem
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user