Re: [FFmpeg-devel] [PATCH] fate: add aac_adtstoasc test (Ticket 3715)

2016-09-20 Thread Michael Niedermayer
On Tue, Sep 20, 2016 at 04:02:05PM +0200, Michael Niedermayer wrote:
> ---
>  tests/fate-run.sh   |  3 +-
>  tests/fate/ffmpeg.mak   |  5 ++
>  tests/ref/fate/adtstoasc_ticket3715 | 94 
> +
>  3 files changed, 101 insertions(+), 1 deletion(-)
>  create mode 100644 tests/ref/fate/adtstoasc_ticket3715

applied

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] fate: add aac_adtstoasc test (Ticket 3715)

2016-09-20 Thread Michael Niedermayer
---
 tests/fate-run.sh   |  3 +-
 tests/fate/ffmpeg.mak   |  5 ++
 tests/ref/fate/adtstoasc_ticket3715 | 94 +
 3 files changed, 101 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/fate/adtstoasc_ticket3715

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index cff..c640cc5 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -197,6 +197,7 @@ transcode(){
 srcfile=$2
 enc_fmt=$3
 enc_opt=$4
+final_decode=$5
 encfile="${outdir}/${test}.${enc_fmt}"
 test "$7" = -keep || cleanfiles="$cleanfiles $encfile"
 tsrcfile=$(target_path $srcfile)
@@ -205,7 +206,7 @@ transcode(){
 -f $enc_fmt -y $tencfile || return
 do_md5sum $encfile
 echo $(wc -c $encfile)
-ffmpeg $DEC_OPTS -i $encfile $ENC_OPTS $FLAGS \
+ffmpeg $DEC_OPTS -i $encfile $ENC_OPTS $FLAGS $final_decode \
 -f framecrc - || return
 }
 
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 42f0776..3782f82 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -84,5 +84,10 @@ fate-rgb24-mkv: $(TARGET_SAMPLES)/qtrle/aletrek-rle.mov
 fate-rgb24-mkv: CMD = transcode "mov" $(TARGET_SAMPLES)/qtrle/aletrek-rle.mov\
   matroska "-vcodec rawvideo -pix_fmt rgb24 -allow_raw_vfw 
1 -vframes 1"
 
+FATE_SAMPLES_FFMPEG-$(call ALLYES, AAC_DEMUXER MOV_MUXER) += 
fate-adtstoasc_ticket3715
+fate-adtstoasc_ticket3715: $(TARGET_SAMPLES)/aac/foo.aac
+fate-adtstoasc_ticket3715: CMD = transcode "aac" $(TARGET_SAMPLES)/aac/foo.aac\
+  mov "-c copy -bsf:a aac_adtstoasc" "-codec copy"
+
 
 FATE_SAMPLES_FFMPEG-yes += $(FATE_STREAMCOPY-yes)
diff --git a/tests/ref/fate/adtstoasc_ticket3715 
b/tests/ref/fate/adtstoasc_ticket3715
new file mode 100644
index 000..ff8e8ab
--- /dev/null
+++ b/tests/ref/fate/adtstoasc_ticket3715
@@ -0,0 +1,94 @@
+ef8ce3cbd1d86113e7c991a816086068 *tests/data/fate/adtstoasc_ticket3715.mov
+33270 tests/data/fate/adtstoasc_ticket3715.mov
+#extradata 0:2, 0x00340022
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: aac
+#sample_rate 0: 44100
+#channel_layout 0: 3
+0,  0,  0, 1024,  371, 0x14b11a4f
+0,   1024,   1024, 1024,  402, 0x2f00c487
+0,   2048,   2048, 1024,  403, 0x1959c0d4
+0,   3072,   3072, 1024,  396, 0x98a9c134
+0,   4096,   4096, 1024,  405, 0xf0a5c8c7
+0,   5120,   5120, 1024,  432, 0xefaed68f
+0,   6144,   6144, 1024,  369, 0x41e4bc81
+0,   7168,   7168, 1024,  370, 0x0052ba67
+0,   8192,   8192, 1024,  426, 0x9b61d389
+0,   9216,   9216, 1024,  346, 0xf24aacf8
+0,  10240,  10240, 1024,  361, 0x815aa4b9
+0,  11264,  11264, 1024,  370, 0xad0db010
+0,  12288,  12288, 1024,  370, 0x6e27bdca
+0,  13312,  13312, 1024,  358, 0x973caed2
+0,  14336,  14336, 1024,  362, 0x8c57b25c
+0,  15360,  15360, 1024,  359, 0x8c6ab063
+0,  16384,  16384, 1024,  373, 0x7838b78f
+0,  17408,  17408, 1024,  489, 0x8fc2f7f0
+0,  18432,  18432, 1024,  346, 0x4ac8b6f8
+0,  19456,  19456, 1024,  341, 0xb537abef
+0,  20480,  20480, 1024,  352, 0xcc43b761
+0,  21504,  21504, 1024,  355, 0xb1b2b234
+0,  22528,  22528, 1024,  354, 0xa865a68c
+0,  23552,  23552, 1024,  370, 0xcad4ace5
+0,  24576,  24576, 1024,  369, 0x4911addc
+0,  25600,  25600, 1024,  363, 0x5a14a836
+0,  26624,  26624, 1024,  361, 0x6d10b6ba
+0,  27648,  27648, 1024,  365, 0xfe1bb5f3
+0,  28672,  28672, 1024,  362, 0x6fc5b252
+0,  29696,  29696, 1024,  366, 0xa122b655
+0,  30720,  30720, 1024,  371, 0xd338ae3d
+0,  31744,  31744, 1024,  363, 0xd977ad97
+0,  32768,  32768, 1024,  384, 0xe443bcc4
+0,  33792,  33792, 1024,  374, 0x281bb8cb
+0,  34816,  34816, 1024,  387, 0x2d70bfef
+0,  35840,  35840, 1024,  363, 0xa6e1b7a6
+0,  36864,  36864, 1024,  387, 0xc5d5c62b
+0,  37888,  37888, 1024,  378, 0xdf71c12f
+0,  38912,  38912, 1024,  377, 0xba9fbead
+0,  39936,  39936, 1024,  359, 0x4495babf
+0,  40960,  40960, 1024,  373, 0x6fbeb8ad
+0,  41984,  41984, 1024,  446, 0x3f98e19a
+0,  43008,  43008, 1024,  348, 0x7aa8b3d0
+0,  44032,  44032, 1024,  355, 0x3cf9abde
+0,  45056,  45056, 1024,  360, 0x3b93aa3d
+0,  46080,  46080, 1024,  411, 0x4534cd86
+0,  47104,  47104, 1024,  402, 0xf215cc44
+0,  48128,  48128, 1024,  483, 0xcf47f39e
+0,