[FFmpeg-cvslog] fate: add test for cropping h264 to container dimensions

Janne Grunau git at videolan.org
Sat Mar 23 12:31:01 CET 2013


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Wed Mar 20 17:44:43 2013 +0100| [3f15b301fa61547f59f1452b14edf14e5673fdd2] | committer: Janne Grunau

fate: add test for cropping h264 to container dimensions

Tests the workaround added for 1080 videos created with Canon cameras
in 30f515091c323da59c0f1b533703dedca2f4b95d.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f15b301fa61547f59f1452b14edf14e5673fdd2
---

 tests/fate/h264.mak                   |    2 ++
 tests/ref/fate/h264-crop-to-container |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 90e036b..fcecc8f 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -182,6 +182,7 @@ FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-lossless                                        \
 
 FATE_H264-$(call DEMDEC, H264, H264) += $(FATE_H264)
+FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-crop-to-container
 FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-interlace-crop
 FATE_H264-$(call ALLYES, MOV_DEMUXER H264_MP4TOANNEXB_BSF) += fate-h264-bsf-mp4toannexb
 
@@ -362,6 +363,7 @@ fate-h264-conformance-sva_nl1_b:                  CMD = framecrc -i $(SAMPLES)/h
 fate-h264-conformance-sva_nl2_e:                  CMD = framecrc -i $(SAMPLES)/h264-conformance/SVA_NL2_E.264
 
 fate-h264-bsf-mp4toannexb:                        CMD = md5 -i $(SAMPLES)/h264/interlaced_crop.mp4 -vcodec copy -bsf h264_mp4toannexb -f h264
+fate-h264-crop-to-container:                      CMD = framemd5 -i $(SAMPLES)/h264/crop-to-container-dims-canon.mov
 fate-h264-extreme-plane-pred:                     CMD = framemd5 -i $(SAMPLES)/h264/extreme-plane-pred.h264
 fate-h264-interlace-crop:                         CMD = framecrc -i $(SAMPLES)/h264/interlaced_crop.mp4 -vframes 3
 fate-h264-lossless:                               CMD = framecrc -i $(SAMPLES)/h264/lossless.h264
diff --git a/tests/ref/fate/h264-crop-to-container b/tests/ref/fate/h264-crop-to-container
new file mode 100644
index 0000000..5dfa441
--- /dev/null
+++ b/tests/ref/fate/h264-crop-to-container
@@ -0,0 +1,2 @@
+#tb 0: 1/30000
+0,          0,          0,        0,  3110400, 43a312e1eebc7dca1bd23456302a44e3



More information about the ffmpeg-cvslog mailing list