From c800858e60e7155fa3484aed855bd3586d7b63d4 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 31 Mar 2010 18:45:00 +0000 Subject: 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 --- libmpdemux/demux_avi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpdemux/demux_avi.c') diff --git a/libmpdemux/demux_avi.c b/libmpdemux/demux_avi.c index eb9b586706..9202dc5cc5 100644 --- a/libmpdemux/demux_avi.c +++ b/libmpdemux/demux_avi.c @@ -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; -- cgit v1.2.3