1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 13:21:13 +00:00

Make audio switching with AVI demuxer chose the first audio stream

if audio is disabled instead of ignoring the request.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30979 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-03-31 18:45:00 +00:00
parent e969acde38
commit c800858e60

View File

@ -801,7 +801,7 @@ static int demux_avi_control(demuxer_t *demuxer,int cmd, void *arg){
int maxid = FFMIN(100, audio ? MAX_A_STREAMS : MAX_V_STREAMS);
int chunkid;
if (ds->id < -1)
return DEMUXER_CTRL_NOTIMPL;
ds->id = -1;
if (*(int *)arg >= 0)
ds->id = *(int *)arg;