From patchwork Fri Dec 9 15:21:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Buitenhuis X-Patchwork-Id: 1730 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.65.86 with SMTP id o83csp362531vsa; Fri, 9 Dec 2016 07:22:06 -0800 (PST) X-Received: by 10.28.45.212 with SMTP id t203mr7659758wmt.46.1481296926589; Fri, 09 Dec 2016 07:22:06 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id l193si18483806wmd.94.2016.12.09.07.22.05; Fri, 09 Dec 2016 07:22:06 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 99C3F68A101; Fri, 9 Dec 2016 17:21:59 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wj0-f173.google.com (mail-wj0-f173.google.com [209.85.210.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1109068A04C for ; Fri, 9 Dec 2016 17:21:53 +0200 (EET) Received: by mail-wj0-f173.google.com with SMTP id v7so17247223wjy.2 for ; Fri, 09 Dec 2016 07:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=2pklC+KEkOHW5iRByecn7bB3KpaQn/TeVgsQ/tW1lNc=; b=i5ST/Nn3W2mHS6KORCKvc0/4jfNKi+XiOiMqAsMt9WnkKRslfiyBEqyXqIr/JsfkZv pqNaSyN15nvq6vlaEvzcxcvbAIE/UR5cfQqqM9BJZa7RxP5iWwbwHLbShGzyGdg9UyQg pOZYRZWv0CfA1qs7QZyIdgiX5spO2iekVDfziQvYAsWRC7U8SnPu1tiyo9VcxWG5OJr/ ll9J+wrbRdu6L44CHpfjqXYsABPdYEBHliHPQRe8ursCLrlLsovCjiSD8DTU/qR+7GNu rYyuYmHj4OJMra4VdcLtGzub1YjCBfSRXkTP2f6GKRx2yU66YfcfqDILczwVYaxomsfp CbvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=2pklC+KEkOHW5iRByecn7bB3KpaQn/TeVgsQ/tW1lNc=; b=b1Dty2qKjk7ocOnlL7NFb36lyvwHGjYejnYVqcn9Oty0fDcoGHUp73jdD+355LeLY6 j5n3H67T6okqMncy3kuyfwKLLg7CFK7cgPAoZogsR0SWae1s4f1yMgZ+09I36+1tOvm1 6WJAezjk786EUB4tvRsrp4UOetJCCoZQuyxe8zNKIOxG9aXog0HnqgKv92hZjER7v7uE 45Ouad1k4W4o8jyAnX7BPm4kCUVkSar77+GyWUPUioyIIic6sjqLrt62fOu+cSbti5az VMqRcDwE1p3ZAWhEYzCUSpOXBo2ruRcvBPSxy0KyQS/laQ+JfTg4iZyHh7x+dKWvBEAQ Nb7A== X-Gm-Message-State: AKaTC02/W7v4CA5n70Qp42jzNLdmpSKeOIRCY8++zEnFQkf3N0qP2MgfhNaYldLIwkpXVA== X-Received: by 10.194.69.230 with SMTP id h6mr53133592wju.63.1481296916275; Fri, 09 Dec 2016 07:21:56 -0800 (PST) Received: from localhost.localdomain ([62.208.37.185]) by smtp.gmail.com with ESMTPSA id v10sm42823982wji.29.2016.12.09.07.21.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Dec 2016 07:21:55 -0800 (PST) From: Derek Buitenhuis To: ffmpeg-devel@ffmpeg.org Date: Fri, 9 Dec 2016 15:21:11 +0000 Message-Id: <20161209152111.16416-1-derek.buitenhuis@gmail.com> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH] fate: Add h264 test for frame num gaps X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Derek Buitenhuis --- Sample is here: https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264 --- tests/fate/h264.mak | 2 ++ tests/ref/fate/h264-missing-frame | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/ref/fate/h264-missing-frame diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak index 718a3a862a..d40681f9c9 100644 --- a/tests/fate/h264.mak +++ b/tests/fate/h264.mak @@ -194,6 +194,7 @@ FATE_H264 := $(FATE_H264:%=fate-h264-conformance-%) \ fate-h264-intra-refresh-recovery \ fate-h264-lossless \ fate-h264-3386 \ + fate-h264-missing-frame \ FATE_H264-$(call DEMDEC, H264, H264) += $(FATE_H264) FATE_H264-$(call DEMDEC, MOV, H264) += fate-h264-crop-to-container @@ -432,6 +433,7 @@ fate-h264-lossless: CMD = framecrc -i $(TARGET_SAM fate-h264-mixed-nal-coding: CMD = framecrc -i $(TARGET_SAMPLES)/h264/mixed-nal-coding.mp4 fate-h264-unescaped-extradata: CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10 fate-h264-3386: CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264 +fate-h264-missing-frame: CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264 fate-h264-reinit-%: CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf format=yuv444p10le,scale=w=352:h=288 diff --git a/tests/ref/fate/h264-missing-frame b/tests/ref/fate/h264-missing-frame new file mode 100644 index 0000000000..04d229913d --- /dev/null +++ b/tests/ref/fate/h264-missing-frame @@ -0,0 +1,35 @@ +#tb 0: 1/30 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 1440x1080 +#sar 0: 1/1 +0, 0, 0, 1, 2332800, 0x009dacb8 +0, 1, 1, 1, 2332800, 0xb1e50764 +0, 2, 2, 1, 2332800, 0xe29481e0 +0, 3, 3, 1, 2332800, 0x0b1b4de4 +0, 4, 4, 1, 2332800, 0x726a644c +0, 5, 5, 1, 2332800, 0x7a09c4a5 +0, 6, 6, 1, 2332800, 0x2e9059ea +0, 7, 7, 1, 2332800, 0x52071fdc +0, 8, 8, 1, 2332800, 0x4fa00417 +0, 9, 9, 1, 2332800, 0x6037fb4d +0, 10, 10, 1, 2332800, 0x887ffae2 +0, 11, 11, 1, 2332800, 0x887ffae2 +0, 12, 12, 1, 2332800, 0x887ffae2 +0, 13, 13, 1, 2332800, 0x887ffae2 +0, 14, 14, 1, 2332800, 0x887ffae2 +0, 15, 15, 1, 2332800, 0x887ffae2 +0, 16, 16, 1, 2332800, 0x887ffae2 +0, 17, 17, 1, 2332800, 0x887ffae2 +0, 18, 18, 1, 2332800, 0x887ffae2 +0, 19, 19, 1, 2332800, 0x887ffae2 +0, 20, 20, 1, 2332800, 0x887ffae2 +0, 21, 21, 1, 2332800, 0x887ffae2 +0, 22, 22, 1, 2332800, 0x887ffae2 +0, 23, 23, 1, 2332800, 0x887ffae2 +0, 24, 24, 1, 2332800, 0x887ffae2 +0, 25, 25, 1, 2332800, 0x887ffae2 +0, 26, 26, 1, 2332800, 0x887ffae2 +0, 27, 27, 1, 2332800, 0x887ffae2 +0, 28, 28, 1, 2332800, 0x887ffae2 +0, 29, 29, 1, 2332800, 0x824bb91b