From patchwork Tue Oct 1 14:59:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: rzumer@tebako.net X-Patchwork-Id: 15436 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 4765A44862C for ; Tue, 1 Oct 2019 17:59:27 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 318D9687FBF; Tue, 1 Oct 2019 17:59:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.141]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B83F0687F15 for ; Tue, 1 Oct 2019 17:59:20 +0300 (EEST) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CC65E160074 for ; Tue, 1 Oct 2019 16:59:19 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 46jMqJ3J7Jz6tmq for ; Tue, 1 Oct 2019 16:59:08 +0200 (CEST) From: =?UTF-8?q?Rapha=C3=ABl=20Zumer?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 1 Oct 2019 10:59:02 -0400 Message-Id: <20191001145902.28552-2-rzumer@tebako.net> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191001145902.28552-1-rzumer@tebako.net> References: <20191001145902.28552-1-rzumer@tebako.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/ivfenc: Encode the number of frames 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Raphaƫl Zumer --- libavformat/ivfenc.c | 3 ++- libavformat/version.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c index adf72117e9..54327f5025 100644 --- a/libavformat/ivfenc.c +++ b/libavformat/ivfenc.c @@ -53,7 +53,8 @@ static int ivf_write_header(AVFormatContext *s) avio_wl16(pb, par->height); avio_wl32(pb, s->streams[0]->time_base.den); avio_wl32(pb, s->streams[0]->time_base.num); - avio_wl64(pb, 0xFFFFFFFFFFFFFFFFULL); + avio_wl32(pb, s->streams[0]->nb_frames); + avio_wl32(pb, 0xFFFFFFFFUL); return 0; } diff --git a/libavformat/version.h b/libavformat/version.h index bcd0408d28..426ffb16e4 100644 --- a/libavformat/version.h +++ b/libavformat/version.h @@ -33,7 +33,7 @@ // Also please add any ticket numbers that you believe might be affected here #define LIBAVFORMAT_VERSION_MAJOR 58 #define LIBAVFORMAT_VERSION_MINOR 33 -#define LIBAVFORMAT_VERSION_MICRO 100 +#define LIBAVFORMAT_VERSION_MICRO 101 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ LIBAVFORMAT_VERSION_MINOR, \