mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
demux_lavf: fix initial "-vid"-based video selection
In 59058b54a7
(from svn r31129) Aurelien
changed demux_lavf -vid indexing, but failed to change the initial
video stream selection based on -vid to match. Fix.
This commit is contained in:
parent
5949f5b9fd
commit
cb4394aea3
@ -428,7 +428,8 @@ static void handle_stream(demuxer_t *demuxer, AVFormatContext *avfc, int i) {
|
||||
int biClrUsed;
|
||||
int biClrImportant;
|
||||
*/
|
||||
if(demuxer->video->id != i && demuxer->video->id != -1)
|
||||
if(demuxer->video->id != priv->video_streams
|
||||
&& demuxer->video->id != -1)
|
||||
st->discard= AVDISCARD_ALL;
|
||||
else{
|
||||
demuxer->video->id = i;
|
||||
|
Loading…
Reference in New Issue
Block a user