diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2021-07-28 12:53:42 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-08-01 09:51:07 +0530 |
commit | c50f5460d2f059e5be393eac90e4eac55a6034c6 (patch) | |
tree | a613cd9aeba6d347cc677ce4982a3eb1c69e834d /libavformat/samidec.c | |
parent | 7b4bdcd68e1e0abfab21a8be81789531d649c1ff (diff) | |
download | ffmpeg-c50f5460d2f059e5be393eac90e4eac55a6034c6.tar.gz |
ffmpeg_opt: restore documented stream selection behaviour
11d3b03fcb added consideration of default stream disposition for audio
and video when choosing the 'best' stream among all the inputs. This can
lead to video streams with lower resolution or audio streams with fewer
channels being selected.
Stream disposition, however, only sets a priority for a stream
among all other streams in the *same input*. It cannot set a priority
for a stream across all inputs.
This patch sets a middle-way and selects the best stream from each file
with default disposition considered. Then it discards disposition weight
and selects best stream as per the original criteria of highest
resolution for video and most channels for audio.
Diffstat (limited to 'libavformat/samidec.c')
0 files changed, 0 insertions, 0 deletions