Skip to content

Commit

Permalink
fate: add fate-adts-id3v1-demux
Browse files Browse the repository at this point in the history
This test the demuxer discarding non ADTS frames at the beginning and
end of the input.

As a side effect, this commit also enables fate-adts-demux, which was
accidentally disabled in 324f0fb.

Tested-by: Michael Niedermayer <[email protected]>
Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Jun 5, 2017
1 parent 4705edb commit c1503cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/fate/demux.mak
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FATE_SAMPLES_DEMUX-$(call DEMDEC, AVI, FRAPS) += fate-avio-direct
fate-avio-direct: CMD = framecrc -avioflags direct -i $(TARGET_SAMPLES)/fraps/fraps-v5-bouncing-balls-partial.avi -avioflags direct

FATE_SAMPLES_DEMUX-$(DEMDEC, AAC, AAC) += fate-adts-demux
FATE_SAMPLES_DEMUX-$(call DEMDEC, AAC, AAC) += fate-adts-demux fate-adts-id3v1-demux
fate-adts-demux: CMD = crc -i $(TARGET_SAMPLES)/aac/ct_faac-adts.aac -acodec copy
fate-adts-id3v1-demux: CMD = framecrc -f aac -i $(TARGET_SAMPLES)/aac/id3v1.aac -acodec copy

FATE_SAMPLES_DEMUX-$(CONFIG_AEA_DEMUXER) += fate-aea-demux
fate-aea-demux: CMD = crc -i $(TARGET_SAMPLES)/aea/chirp.aea -acodec copy
Expand Down
11 changes: 11 additions & 0 deletions tests/ref/fate/adts-id3v1-demux
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#tb 0: 1/28224000
#media_type 0: audio
#codec_id 0: aac
#sample_rate 0: 48000
#channel_layout 0: 3
#channel_layout_name 0: stereo
0, 0, 0, 602112, 474, 0x4c90e7c4
0, 602112, 602112, 602112, 471, 0xb8b5e75d
0, 1204224, 1204224, 602112, 502, 0xe943efd1
0, 1806336, 1806336, 602112, 495, 0x9c3cec74
0, 2408448, 2408448, 602112, 493, 0x03b2fa4b

0 comments on commit c1503cd

Please sign in to comment.