From eb066a4ce9e82cddb8f5af574804aa9889450b34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Sat, 18 Dec 2010 23:11:31 +0000
Subject: [PATCH] Discard partial packet of last frame for fate-wmv8-drm to
 avoid test fails due to VC-1 decoder overreads resulting in different output.

Originally committed as revision 26055 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 tests/fate2.mak         | 3 ++-
 tests/ref/fate/wmv8-drm | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/fate2.mak b/tests/fate2.mak
index ff59e13bac7..6f5f47836e8 100644
--- a/tests/fate2.mak
+++ b/tests/fate2.mak
@@ -168,7 +168,8 @@ FATE_TESTS += fate-ansi
 fate-ansi: CMD = framecrc -i $(SAMPLES)/ansi/TRE-IOM5.ANS -pix_fmt rgb24
 
 FATE_TESTS += fate-wmv8-drm
-fate-wmv8-drm: CMD = framecrc -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(SAMPLES)/wmv8/wmv_drm.wmv -an
+# discard last packet to avoid fails due to overread of VC-1 decoder
+fate-wmv8-drm: CMD = framecrc -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(SAMPLES)/wmv8/wmv_drm.wmv -an -vframes 162
 
 FATE_TESTS += fate-wmv8-drm-nodec
 fate-wmv8-drm-nodec: CMD = framecrc -cryptokey 137381538c84c068111902a59c5cf6c340247c39 -i $(SAMPLES)/wmv8/wmv_drm.wmv -acodec copy -vcodec copy
diff --git a/tests/ref/fate/wmv8-drm b/tests/ref/fate/wmv8-drm
index 7b026251a57..4dc0f0e4f9e 100644
--- a/tests/ref/fate/wmv8-drm
+++ b/tests/ref/fate/wmv8-drm
@@ -160,4 +160,3 @@
 0, 596250, 84480, 0xbce22331
 0, 600000, 84480, 0x020545d7
 0, 603750, 84480, 0x71869e48
-0, 607500, 84480, 0x5befc578
-- 
GitLab