From cf9500a4dc838ee25a5dc2771cd23e12e1f5e6c1 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michael@niedermayer.cc>
Date: Mon, 5 Sep 2016 19:12:41 +0200
Subject: [PATCH] tests/fate/ffmpeg: add test for mpegts->mxf steram copy
 (Ticket 4914)

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tests/fate/ffmpeg.mak        | 5 +++++
 tests/ref/fate/copy-trac4914 | 2 ++
 2 files changed, 7 insertions(+)
 create mode 100644 tests/ref/fate/copy-trac4914

diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index b3929b75384..5ca5589d52b 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -56,6 +56,11 @@ fate-copy-trac236: $(TARGET_SAMPLES)/mov/fcp_export8-236.mov
 fate-copy-trac236: CMD = transcode mov $(TARGET_SAMPLES)/mov/fcp_export8-236.mov\
                      mov "-codec copy -map 0"
 
+FATE_SAMPLES_FFMPEG-$(call ALLYES, MPEGTS_DEMUXER MXF_MUXER PCM_S16LE_ENCODER) += fate-copy-trac4914
+fate-copy-trac4914: $(TARGET_SAMPLES)/mpeg2/xdcam8mp2-1s_small.ts
+fate-copy-trac4914: CMD = transcode mpegts $(TARGET_SAMPLES)/mpeg2/xdcam8mp2-1s_small.ts\
+                      mxf "-c:a pcm_s16le -c:v copy"
+
 FATE_SAMPLES_FFMPEG-$(call DEMMUX, OGG, OGG) += fate-limited_input_seek fate-limited_input_seek-copyts
 fate-limited_input_seek: $(TARGET_SAMPLES)/vorbis/moog_small.ogg
 fate-limited_input_seek: CMD = md5 -ss 1.5 -t 1.3 -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -c:a copy -fflags +bitexact -f ogg
diff --git a/tests/ref/fate/copy-trac4914 b/tests/ref/fate/copy-trac4914
new file mode 100644
index 00000000000..9301c86346a
--- /dev/null
+++ b/tests/ref/fate/copy-trac4914
@@ -0,0 +1,2 @@
+84316a64b609052d9974891686fbf607 *tests/data/fate/copy-trac4914.mxf
+566329 tests/data/fate/copy-trac4914.mxf
-- 
GitLab