From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id ADFF540EA9
	for <ffmpegdev@gitmailbox.com>; Sat,  1 Jan 2022 01:12:04 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A059F68A4CD;
	Sat,  1 Jan 2022 03:12:01 +0200 (EET)
Received: from mail.personalprojects.net (mail.personalprojects.net
 [51.79.67.80])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1F12E689972
 for <ffmpeg-devel@ffmpeg.org>; Sat,  1 Jan 2022 03:11:55 +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:
 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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=66CQPHPLfZf2JaoVrozY8kfTXsxOR3GmkW2QUPAP3zE=; b=n75uJzbQPompeXqXstoZV3+Ki6
 ZQIHyjZkM+2XsETpN269ohRUuUXcZ6nsz2H82JjaS6dBesSjN8BmFK9qMGbR9bEMZKiu7pFUjzCmc
 KoDkbXidLmdjV/pms1bV8fYPSTip/K7R07okUKEihKqygMf7uRk4duEpixlRr9n7eR+A=;
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 <jpstewart@personalprojects.net>) id 1n3Sw5-0006lA-HS
 for ffmpeg-devel@ffmpeg.org; Fri, 31 Dec 2021 20:11:53 -0500
From: John-Paul Stewart <jpstewart-at-personalprojects.net@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Date: Fri, 31 Dec 2021 20:11:46 -0500
Message-Id: <20220101011148.13921-1-jpstewart@personalprojects.net>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
Subject: [FFmpeg-devel] [PATCH v2 0/2] avformat/mvdec: make audio stream
 conditional
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20220101011148.13921-1-jpstewart@personalprojects.net/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

Changed in v2:
    Allocate the audio stream first to maintain consistent behaviour
    with prior code.

Recent discussion on the list led me to realize that libavformat was
unconditionally creating an audio stream for all SGI movie format
(version 2) files, even when no audio is present in the file.  

A sample of a movie file with no audio can be found at
    http://www.personalprojects.net/ffmpeg/silent.movie

Unpatched ffmpeg will report an audio stream even though no audio is
present.  After the following patch no audio stream is reported.

Incidentally, the silent.movie sample above is at 25fps and can also be
used by anyone who wants to double-check the earlier patch 3c9ffbd009
that reads and sets the framerate.  The sample file is only about 88 KB.


_______________________________________________
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".