On 05.04.2015 04:23, Michael Niedermayer wrote:
> maybe you want to add a fate test ?

Sure, patch attached.

> i can upload a small sample to the fate samples if you have one 

I just created one from the sample linked in ticket #2913 (attached):
$ ffmpeg -i pegasus-1958-chiptune.avi -c:v copy -map v -t 0.5 packed_bframes.avi

Please add it to the mpeg4 folder in the samples directory.

Best regards,
Andreas
>From c5e78ca47aed2fc94a62c0e90e798aa7425658df Mon Sep 17 00:00:00 2001
From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
Date: Sun, 5 Apr 2015 18:51:55 +0200
Subject: [PATCH] fate: add mpeg4_unpack_bframes bsf test

Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
---
 tests/fate/mpeg4.mak                    | 3 +++
 tests/ref/fate/mpeg4-bsf-unpack-bframes | 1 +
 2 files changed, 4 insertions(+)
 create mode 100644 tests/ref/fate/mpeg4-bsf-unpack-bframes

diff --git a/tests/fate/mpeg4.mak b/tests/fate/mpeg4.mak
index eefdec9..285c933 100644
--- a/tests/fate/mpeg4.mak
+++ b/tests/fate/mpeg4.mak
@@ -5,5 +5,8 @@ fate-mpeg4-resolution-change-%: CMD = framemd5 -flags +bitexact -idct simple -i
 
 FATE_MPEG4-$(call DEMDEC, H263, H263) := $(addprefix fate-mpeg4-resolution-change-, $(MPEG4_RESOLUTION_CHANGE))
 
+fate-mpeg4-bsf-unpack-bframes: CMD = md5 -i $(TARGET_SAMPLES)/mpeg4/packed_bframes.avi -c:v copy -bsf mpeg4_unpack_bframes -f avi
+FATE_MPEG4-$(call ALLYES, AVI_DEMUXER MPEG4_UNPACK_BFRAMES_BSF AVI_MUXER) += fate-mpeg4-bsf-unpack-bframes
+
 FATE_SAMPLES_AVCONV += $(FATE_MPEG4-yes)
 fate-mpeg4: $(FATE_MPEG4-yes)
diff --git a/tests/ref/fate/mpeg4-bsf-unpack-bframes b/tests/ref/fate/mpeg4-bsf-unpack-bframes
new file mode 100644
index 0000000..09211c9
--- /dev/null
+++ b/tests/ref/fate/mpeg4-bsf-unpack-bframes
@@ -0,0 +1 @@
+1fd35288e4e76dddf027ec0007f29a76
-- 
2.1.4

Attachment: packed_bframes.avi
Description: MS Video

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to