From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 6E15B424AD for ; Sat, 18 Dec 2021 20:47:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1D0A968AF4C; Sat, 18 Dec 2021 22:46:53 +0200 (EET) Received: from mail.personalprojects.net (mail.personalprojects.net [51.79.67.80]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 66B2A68AE51 for ; Sat, 18 Dec 2021 22:46:46 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=personalprojects.net; s=20211201; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DXx+LC7EWgXdKWOd7kkEQhxr8nNF+PTyyKsjm/n7dGI=; b=cd3paHYSClD0EjIbkGmGdnRDcc puWRozC94Y79UJ89wG7u1+voVfY57kuMF9F/kFVMA0T9GZMVOk716aP0mG6ZZuMxjBTd9IIywgdff vSuK8xBjUbdg2fk/ver1R8QhUKAUYpiXpsevv/yKdzAiJ3MZ4Ohogp+5ar3eUg9QP17g=; Received: from bras-base-simcon3012w-grc-05-64-231-188-105.dsl.bell.ca ([64.231.188.105] helo=courtney.binaryfoundry.ca) by mail.personalprojects.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mygbN-0005m3-Ay for ffmpeg-devel@ffmpeg.org; Sat, 18 Dec 2021 15:46:45 -0500 From: John-Paul Stewart To: ffmpeg-devel@ffmpeg.org Date: Sat, 18 Dec 2021 15:46:28 -0500 Message-Id: <20211218204628.22664-2-jpstewart@personalprojects.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211218204628.22664-1-jpstewart@personalprojects.net> References: <20211218204628.22664-1-jpstewart@personalprojects.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avformat/mvdec: explicitly set duration X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Resolves a warning that duration is being innaccurately estimated based on bitrate. Signed-off-by: John-Paul Stewart --- libavformat/mvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index a5c5b205a6..1a5012e507 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mvdec.c @@ -319,7 +319,7 @@ static int mv_read_header(AVFormatContext *avctx) avio_skip(pb, 4); vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; vst->avg_frame_rate = fps; - vst->nb_frames = avio_rb32(pb); + vst->duration = vst->nb_frames = avio_rb32(pb); v = avio_rb32(pb); switch (v) { case 1: -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".