[FFmpeg-devel] [PATCH] avformat/mp3dec: set default disposition
Gyan
ffmpeg at gyani.pro
Sat Aug 24 12:28:28 EEST 2019
Fixes #8091, which reports what I consider a change rather than a
regression since 11d3b03fcb2baae4324aac9481b9bd4a171d4345
<http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=11d3b03fcb2baae4324aac9481b9bd4a171d4345>
It may be good practice to set default disposition in all demuxers which
only accept one stream of a type.
Gyan
-------------- next part --------------
From 647968016d28114bd9880daf5b5b728d005e8a69 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <ffmpeg at gyani.pro>
Date: Sat, 24 Aug 2019 14:52:31 +0530
Subject: [PATCH] avformat/mp3dec: set default disposition
Fixes #8091
---
libavformat/mp3dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 258f19174b..2199e42cd0 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -364,6 +364,7 @@ static int mp3_read_header(AVFormatContext *s)
st->codecpar->codec_id = AV_CODEC_ID_MP3;
st->need_parsing = AVSTREAM_PARSE_FULL_RAW;
st->start_time = 0;
+ st->disposition |= AV_DISPOSITION_DEFAULT;
// lcm of all mp3 sample rates
avpriv_set_pts_info(st, 64, 1, 14112000);
--
2.22.0
More information about the ffmpeg-devel
mailing list