[FFmpeg-devel] [PATCH] fate: Add test for packed mp3 in mp4 demuxing

Michael Niedermayer michael at niedermayer.cc
Thu Feb 25 03:13:07 CET 2016


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 tests/fate/demux.mak         |    3 +
 tests/ref/fate/mov-mp3-demux |  289 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 292 insertions(+)
 create mode 100644 tests/ref/fate/mov-mp3-demux

diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak
index e48d398..10a8f33 100644
--- a/tests/fate/demux.mak
+++ b/tests/fate/demux.mak
@@ -56,6 +56,9 @@ fate-mkv: CMD = framecrc -i $(TARGET_SAMPLES)/mkv/test7_cut.mkv -c copy
 FATE_SAMPLES_DEMUX-$(CONFIG_MLV_DEMUXER) += fate-mlv-demux
 fate-mlv-demux: CMD = crc -i $(TARGET_SAMPLES)/mlv/M19-0333-cut.MLV -c copy
 
+FATE_SAMPLES_DEMUX-$(CONFIG_MOV_DEMUXER) += fate-mov-mp3-demux
+fate-mov-mp3-demux: CMD = framecrc -i $(TARGET_SAMPLES)/mpegaudio/packed_maindata.mp3.mp4 -c copy
+
 FATE_SAMPLES_DEMUX-$(CONFIG_MTV_DEMUXER) += fate-mtv
 fate-mtv: CMD = framecrc -i $(TARGET_SAMPLES)/mtv/comedian_auto-partial.mtv -c copy
 
diff --git a/tests/ref/fate/mov-mp3-demux b/tests/ref/fate/mov-mp3-demux
new file mode 100644
index 0000000..b4b2cef
--- /dev/null
+++ b/tests/ref/fate/mov-mp3-demux
@@ -0,0 +1,289 @@
+#tb 0: 1/44100
+0,          0,          0,     1152,       36, 0x8e260589
+0,       1152,       1152,     1152,       36, 0x8e260589
+0,       2304,       2304,     1152,       36, 0x8e260589
+0,       3456,       3456,     1152,       36, 0x8e260589
+0,       4608,       4608,     1152,       36, 0x8e260589
+0,       5760,       5760,     1152,       36, 0x8e260589
+0,       6912,       6912,     1152,       69, 0xdb550f09
+0,       8064,       8064,     1152,      104, 0xbaeb1aa8
+0,       9216,       9216,     1152,      104, 0xbaeb1aa8
+0,      10368,      10368,     1152,      104, 0xbaeb1aa8
+0,      11520,      11520,     1152,      104, 0xbaeb1aa8
+0,      12672,      12672,     1152,      104, 0xbaeb1aa8
+0,      13824,      13824,     1152,      104, 0xbaeb1aa8
+0,      14976,      14976,     1152,       36, 0x8e260589
+0,      16128,      16128,     1152,      601, 0xc34f1dc9
+0,      17280,      17280,     1152,      716, 0x6c2665e5
+0,      18432,      18432,     1152,      672, 0xf9873f4b
+0,      19584,      19584,     1152,      631, 0xd13333cc
+0,      20736,      20736,     1152,      604, 0xc0bb13e5
+0,      21888,      21888,     1152,      642, 0x4e873319
+0,      23040,      23040,     1152,      631, 0xcf701e7d
+0,      24192,      24192,     1152,      632, 0x27773046
+0,      25344,      25344,     1152,      609, 0x7ec21e53
+0,      26496,      26496,     1152,      582, 0xd68e0d59
+0,      27648,      27648,     1152,      550, 0x5b1303ee
+0,      28800,      28800,     1152,      581, 0x73dc12e4
+0,      29952,      29952,     1152,      545, 0x530f085a
+0,      31104,      31104,     1152,      556, 0xff0cfd9a
+0,      32256,      32256,     1152,      567, 0x3c330743
+0,      33408,      33408,     1152,      564, 0x2c3a1144
+0,      34560,      34560,     1152,      913, 0x74b08ab7
+0,      35712,      35712,     1152,      681, 0x2669444a
+0,      36864,      36864,     1152,      615, 0x60a41b1a
+0,      38016,      38016,     1152,      670, 0x53793367
+0,      39168,      39168,     1152,      666, 0x8c453c1a
+0,      40320,      40320,     1152,      613, 0x679f17a4
+0,      41472,      41472,     1152,      561, 0x357405c0
+0,      42624,      42624,     1152,      527, 0x687afacb
+0,      43776,      43776,     1152,      515, 0xf99dfb73
+0,      44928,      44928,     1152,      560, 0xa9ca0767
+0,      46080,      46080,     1152,      550, 0xb1ce0990
+0,      47232,      47232,     1152,      494, 0x3fd2f2c8
+0,      48384,      48384,     1152,      518, 0x9c5b0242
+0,      49536,      49536,     1152,      520, 0xbfdc0877
+0,      50688,      50688,     1152,      512, 0x4988f94b
+0,      51840,      51840,     1152,      786, 0xf3cf61de
+0,      52992,      52992,     1152,      713, 0x2f1c46b4
+0,      54144,      54144,     1152,      616, 0x210327d8
+0,      55296,      55296,     1152,      632, 0x39d430d4
+0,      56448,      56448,     1152,      615, 0xd7231930
+0,      57600,      57600,     1152,      620, 0xb7023663
+0,      58752,      58752,     1152,      585, 0x9e90100a
+0,      59904,      59904,     1152,      583, 0xe4152b2a
+0,      61056,      61056,     1152,      614, 0x0d572ebf
+0,      62208,      62208,     1152,      636, 0x9d1f2e6b
+0,      63360,      63360,     1152,      603, 0x2e33240f
+0,      64512,      64512,     1152,      627, 0x2c7e204c
+0,      65664,      65664,     1152,      626, 0x5cc3254b
+0,      66816,      66816,     1152,      626, 0xe8fd34df
+0,      67968,      67968,     1152,      600, 0x33a926d5
+0,      69120,      69120,     1152,      777, 0x4cd66f53
+0,      70272,      70272,     1152,      753, 0x8b297901
+0,      71424,      71424,     1152,      657, 0xd10e302f
+0,      72576,      72576,     1152,      611, 0x484d2f44
+0,      73728,      73728,     1152,      640, 0x310b414a
+0,      74880,      74880,     1152,      580, 0x3b410cdb
+0,      76032,      76032,     1152,      574, 0x6aba282c
+0,      77184,      77184,     1152,      541, 0x59680d64
+0,      78336,      78336,     1152,      512, 0x0824f236
+0,      79488,      79488,     1152,      516, 0x6d1efaba
+0,      80640,      80640,     1152,      553, 0x942b0d90
+0,      81792,      81792,     1152,      564, 0xb8471180
+0,      82944,      82944,     1152,      550, 0xfb150964
+0,      84096,      84096,     1152,      534, 0xbc4e0254
+0,      85248,      85248,     1152,      529, 0x02b3f603
+0,      86400,      86400,     1152,      521, 0xe77a00f3
+0,      87552,      87552,     1152,      501, 0x0292f088
+0,      88704,      88704,     1152,      498, 0xd1f4eb60
+0,      89856,      89856,     1152,      495, 0xa9e8e882
+0,      91008,      91008,     1152,      487, 0x1b40edfd
+0,      92160,      92160,     1152,      492, 0xd8cde96f
+0,      93312,      93312,     1152,      480, 0x387be300
+0,      94464,      94464,     1152,      476, 0x4c6ae249
+0,      95616,      95616,     1152,      450, 0xd690d4f4
+0,      96768,      96768,     1152,      453, 0x1aafd73e
+0,      97920,      97920,     1152,      448, 0xe997d8d1
+0,      99072,      99072,     1152,      429, 0x5813c034
+0,     100224,     100224,     1152,      430, 0xcd4ac57b
+0,     101376,     101376,     1152,      416, 0xe466b916
+0,     102528,     102528,     1152,      425, 0x8f67b863
+0,     103680,     103680,     1152,      418, 0xc8faccfe
+0,     104832,     104832,     1152,      397, 0x932cb515
+0,     105984,     105984,     1152,      413, 0x0a64bdfc
+0,     107136,     107136,     1152,      408, 0xa4abcbe4
+0,     108288,     108288,     1152,      405, 0xb231c336
+0,     109440,     109440,     1152,      417, 0xda6ac762
+0,     110592,     110592,     1152,      404, 0xb2fdb983
+0,     111744,     111744,     1152,      420, 0x0478c7fc
+0,     112896,     112896,     1152,      414, 0x1a3fb9fb
+0,     114048,     114048,     1152,      411, 0xfda0c1a9
+0,     115200,     115200,     1152,      390, 0xe508c2ab
+0,     116352,     116352,     1152,      399, 0x610cc9ca
+0,     117504,     117504,     1152,      379, 0x04a4b4a3
+0,     118656,     118656,     1152,      383, 0x6217b91a
+0,     119808,     119808,     1152,      360, 0x1ca3aa4a
+0,     120960,     120960,     1152,      339, 0x26dca5ce
+0,     122112,     122112,     1152,      336, 0x0292a0b0
+0,     123264,     123264,     1152,      340, 0x4a24a36d
+0,     124416,     124416,     1152,      312, 0x45fc8afd
+0,     125568,     125568,     1152,      335, 0xb563a410
+0,     126720,     126720,     1152,      346, 0x0ab4a331
+0,     127872,     127872,     1152,      334, 0x327b9cfc
+0,     129024,     129024,     1152,      336, 0x55fda599
+0,     130176,     130176,     1152,      357, 0x9e6dade5
+0,     131328,     131328,     1152,      343, 0x3bf4a84a
+0,     132480,     132480,     1152,      330, 0x52d99957
+0,     133632,     133632,     1152,      358, 0x89bda76f
+0,     134784,     134784,     1152,      349, 0x6067a31d
+0,     135936,     135936,     1152,      357, 0x34dea77f
+0,     137088,     137088,     1152,      376, 0xd001b7d8
+0,     138240,     138240,     1152,      334, 0xa81d9b6b
+0,     139392,     139392,     1152,      369, 0x1fd5ab31
+0,     140544,     140544,     1152,      359, 0x7ffbae85
+0,     141696,     141696,     1152,      368, 0xa277a108
+0,     142848,     142848,     1152,      359, 0xea6da507
+0,     144000,     144000,     1152,      369, 0x437ab164
+0,     145152,     145152,     1152,      361, 0x1a2aa959
+0,     146304,     146304,     1152,      343, 0x83cfa2e2
+0,     147456,     147456,     1152,      369, 0x8558aeb6
+0,     148608,     148608,     1152,      355, 0x4d1da64d
+0,     149760,     149760,     1152,      364, 0x0fe9b2d8
+0,     150912,     150912,     1152,      355, 0xfc98aba5
+0,     152064,     152064,     1152,      390, 0x9d25b5c4
+0,     153216,     153216,     1152,      361, 0x9fe8ab24
+0,     154368,     154368,     1152,      364, 0x03ada717
+0,     155520,     155520,     1152,      379, 0xb06eb9e2
+0,     156672,     156672,     1152,      371, 0xc3aeb45c
+0,     157824,     157824,     1152,      895, 0x86d198dc
+0,     158976,     158976,     1152,      644, 0x1f1d376a
+0,     160128,     160128,     1152,      682, 0x4da84df6
+0,     161280,     161280,     1152,      675, 0xd41543be
+0,     162432,     162432,     1152,      642, 0xd5b04211
+0,     163584,     163584,     1152,      632, 0x45da38cd
+0,     164736,     164736,     1152,      597, 0x9f1611d3
+0,     165888,     165888,     1152,      574, 0x089f215f
+0,     167040,     167040,     1152,      578, 0x90880461
+0,     168192,     168192,     1152,      566, 0x38360e79
+0,     169344,     169344,     1152,      583, 0xe62e0ab6
+0,     170496,     170496,     1152,      593, 0xa55a19f8
+0,     171648,     171648,     1152,      625, 0xbf7d1b0f
+0,     172800,     172800,     1152,      574, 0xa719176a
+0,     173952,     173952,     1152,      605, 0xf5e517ef
+0,     175104,     175104,     1152,      804, 0x3a0a81ae
+0,     176256,     176256,     1152,      699, 0x880635bd
+0,     177408,     177408,     1152,      646, 0x79052faa
+0,     178560,     178560,     1152,      634, 0x2e8d2d8e
+0,     179712,     179712,     1152,      596, 0xc8281e87
+0,     180864,     180864,     1152,      605, 0xa5e73156
+0,     182016,     182016,     1152,      588, 0x7c8b1a55
+0,     183168,     183168,     1152,      566, 0x9e710ea4
+0,     184320,     184320,     1152,      624, 0x69072d37
+0,     185472,     185472,     1152,      600, 0xe84832fc
+0,     186624,     186624,     1152,      580, 0x29fd123a
+0,     187776,     187776,     1152,      562, 0xba300d11
+0,     188928,     188928,     1152,      577, 0x8a471fc9
+0,     190080,     190080,     1152,      588, 0x94fb1954
+0,     191232,     191232,     1152,      576, 0x6d7d1bcf
+0,     192384,     192384,     1152,      697, 0xc0a13955
+0,     193536,     193536,     1152,      805, 0xe5fb8aee
+0,     194688,     194688,     1152,      673, 0x645c4b23
+0,     195840,     195840,     1152,      635, 0xd40f2820
+0,     196992,     196992,     1152,      660, 0xb3d638b8
+0,     198144,     198144,     1152,      652, 0x7c21322a
+0,     199296,     199296,     1152,      623, 0x382a2735
+0,     200448,     200448,     1152,      606, 0xb0632a69
+0,     201600,     201600,     1152,      584, 0xfaa820eb
+0,     202752,     202752,     1152,      645, 0x774327c9
+0,     203904,     203904,     1152,      654, 0x96b41a4b
+0,     205056,     205056,     1152,      660, 0x57483145
+0,     206208,     206208,     1152,      606, 0xd61716f0
+0,     207360,     207360,     1152,      637, 0x6c8526ee
+0,     208512,     208512,     1152,      624, 0xcccf1f78
+0,     209664,     209664,     1152,      640, 0x966e2d58
+0,     210816,     210816,     1152,      868, 0x6f42a03e
+0,     211968,     211968,     1152,      712, 0x10195ab2
+0,     213120,     213120,     1152,      623, 0x3b3f24a8
+0,     214272,     214272,     1152,      618, 0xfb853122
+0,     215424,     215424,     1152,      606, 0x20922909
+0,     216576,     216576,     1152,      526, 0x05defcdd
+0,     217728,     217728,     1152,      538, 0xc18ffeef
+0,     218880,     218880,     1152,      508, 0x1943eba7
+0,     220032,     220032,     1152,      497, 0xf953fbb6
+0,     221184,     221184,     1152,      513, 0x3b35f026
+0,     222336,     222336,     1152,      530, 0x705b0333
+0,     223488,     223488,     1152,      528, 0x7c5800e9
+0,     224640,     224640,     1152,      517, 0x1601fa7e
+0,     225792,     225792,     1152,      501, 0x5045f61a
+0,     226944,     226944,     1152,      520, 0x254ee65d
+0,     228096,     228096,     1152,      827, 0x29644ce4
+0,     229248,     229248,     1152,      692, 0xb9d265ee
+0,     230400,     230400,     1152,      660, 0x050233c6
+0,     231552,     231552,     1152,      631, 0x0306284e
+0,     232704,     232704,     1152,      611, 0xf9ed2079
+0,     233856,     233856,     1152,      640, 0xd1ab3363
+0,     235008,     235008,     1152,      652, 0xaebf3b5a
+0,     236160,     236160,     1152,      619, 0xc64e280b
+0,     237312,     237312,     1152,      601, 0x647d258c
+0,     238464,     238464,     1152,      574, 0x0a2b1548
+0,     239616,     239616,     1152,      570, 0xd98e11bf
+0,     240768,     240768,     1152,      611, 0x04a81e85
+0,     241920,     241920,     1152,      525, 0x108ff5ee
+0,     243072,     243072,     1152,      569, 0x9a3b1319
+0,     244224,     244224,     1152,      574, 0xdc770a8d
+0,     245376,     245376,     1152,      831, 0x5ed066c7
+0,     246528,     246528,     1152,      722, 0xa8834f8b
+0,     247680,     247680,     1152,      730, 0x71f56be1
+0,     248832,     248832,     1152,      729, 0x9653694a
+0,     249984,     249984,     1152,      750, 0xf8716eb8
+0,     251136,     251136,     1152,      695, 0x541951fa
+0,     252288,     252288,     1152,      677, 0xbf575b05
+0,     253440,     253440,     1152,      639, 0x1f74352b
+0,     254592,     254592,     1152,      647, 0x87e43a7e
+0,     255744,     255744,     1152,      613, 0x09551766
+0,     256896,     256896,     1152,      564, 0xa067162a
+0,     258048,     258048,     1152,      539, 0xf2280791
+0,     259200,     259200,     1152,      516, 0x9cfef313
+0,     260352,     260352,     1152,      527, 0x5a94088f
+0,     261504,     261504,     1152,      528, 0x71d1f32b
+0,     262656,     262656,     1152,      511, 0xaf28f38c
+0,     263808,     263808,     1152,      519, 0x47a4f3e4
+0,     264960,     264960,     1152,      519, 0x6a67f4a4
+0,     266112,     266112,     1152,      514, 0xe176e6d1
+0,     267264,     267264,     1152,      525, 0xd194edac
+0,     268416,     268416,     1152,      527, 0x6d50f7c3
+0,     269568,     269568,     1152,      508, 0x3f8d05af
+0,     270720,     270720,     1152,      517, 0x7f48ec77
+0,     271872,     271872,     1152,      468, 0x73a2d82f
+0,     273024,     273024,     1152,      457, 0xc816cf16
+0,     274176,     274176,     1152,      434, 0x9e5bc930
+0,     275328,     275328,     1152,      443, 0xde0fd171
+0,     276480,     276480,     1152,      415, 0x5800b715
+0,     277632,     277632,     1152,      420, 0xeda9d20c
+0,     278784,     278784,     1152,      416, 0x4793c017
+0,     279936,     279936,     1152,      417, 0x5a37c00e
+0,     281088,     281088,     1152,      409, 0x02deb9ed
+0,     282240,     282240,     1152,      407, 0xd8b2b127
+0,     283392,     283392,     1152,      395, 0x787fba53
+0,     284544,     284544,     1152,      389, 0x3362b2b3
+0,     285696,     285696,     1152,      388, 0xe058af5d
+0,     286848,     286848,     1152,      374, 0xe1c0ad48
+0,     288000,     288000,     1152,      390, 0xa4f8b203
+0,     289152,     289152,     1152,      382, 0xe076b693
+0,     290304,     290304,     1152,      382, 0xa19ab1d1
+0,     291456,     291456,     1152,      389, 0x614db09b
+0,     292608,     292608,     1152,      375, 0x8e3bb1a9
+0,     293760,     293760,     1152,      375, 0x455daa5f
+0,     294912,     294912,     1152,      391, 0xd938ae9f
+0,     296064,     296064,     1152,      380, 0x6cebb555
+0,     297216,     297216,     1152,      381, 0xc42faf26
+0,     298368,     298368,     1152,      364, 0x6719a5b9
+0,     299520,     299520,     1152,      352, 0xd9aaa922
+0,     300672,     300672,     1152,      372, 0xfaceaab9
+0,     301824,     301824,     1152,      369, 0x1dd0b400
+0,     302976,     302976,     1152,      338, 0x1be49de3
+0,     304128,     304128,     1152,      340, 0x7f43a4af
+0,     305280,     305280,     1152,      344, 0x8f519ec0
+0,     306432,     306432,     1152,      355, 0xdcbda935
+0,     307584,     307584,     1152,      335, 0x69299219
+0,     308736,     308736,     1152,      331, 0x1f72a77c
+0,     309888,     309888,     1152,      353, 0xe28ba583
+0,     311040,     311040,     1152,      337, 0x70b69966
+0,     312192,     312192,     1152,      361, 0xbe73a133
+0,     313344,     313344,     1152,      369, 0x300ab491
+0,     314496,     314496,     1152,      381, 0x5913bf78
+0,     315648,     315648,     1152,      372, 0x544daa11
+0,     316800,     316800,     1152,      376, 0xdc04ba2b
+0,     317952,     317952,     1152,      337, 0xc3d095f5
+0,     319104,     319104,     1152,      345, 0x306da1c1
+0,     320256,     320256,     1152,      374, 0x8297b29e
+0,     321408,     321408,     1152,      347, 0xe7f2a33e
+0,     322560,     322560,     1152,      364, 0x9a7eb40c
+0,     323712,     323712,     1152,      358, 0x3bdca87c
+0,     324864,     324864,     1152,      339, 0x9d48a314
+0,     326016,     326016,     1152,      370, 0x78a6acb1
+0,     327168,     327168,     1152,      353, 0xb876a9ca
+0,     328320,     328320,     1152,      355, 0x82eab1cf
+0,     329472,     329472,     1152,      360, 0xa8cea2a9
+0,     330624,     330624,     1152,      547, 0x6176af27
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list