OSDN Git Service

mp3: enable packed main_data decoding in MP4
authornu774 <honeycomb77@gmail.com>
Fri, 9 May 2014 14:05:42 +0000 (23:05 +0900)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 20 Jun 2015 09:18:01 +0000 (12:18 +0300)
commit6ec688e1bc76dd93151cbca1c340162ae4b10d77
tree908c2bdc32acbf8be895b0cdcdfdcd99d1bbf48a
parent1e79d5c6e73ad131f9395f337b58a2b59ee04c1b
mp3: enable packed main_data decoding in MP4

14496-3 suggests packing main_data of MP3 that is usually scattered
into multiple frames due to bit reservoir.

However, after packing main_data into a access unit, bitrate index
in the MPEG audio frame header doesn't match with actual frame size.

In order to accept this, this patch removes unnecessary frame size
checking on mp3 decoder.

Also, mov demuxer was changed to use MP3 parser only on special cases
(QT MOV with specific sample description) to avoid re-packetizing.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/mpegaudiodec_template.c
libavformat/mov.c
tests/fate/mp3.mak