[MPlayer-cvslog] r30979 - trunk/libmpdemux/demux_avi.c

reimar subversion at mplayerhq.hu
Wed Mar 31 20:45:00 CEST 2010


Author: reimar
Date: Wed Mar 31 20:45:00 2010
New Revision: 30979

Log:
Make audio switching with AVI demuxer chose the first audio stream
if audio is disabled instead of ignoring the request.

Modified:
   trunk/libmpdemux/demux_avi.c

Modified: trunk/libmpdemux/demux_avi.c
==============================================================================
--- trunk/libmpdemux/demux_avi.c	Wed Mar 31 19:00:33 2010	(r30978)
+++ trunk/libmpdemux/demux_avi.c	Wed Mar 31 20:45:00 2010	(r30979)
@@ -801,7 +801,7 @@ static int demux_avi_control(demuxer_t *
 	    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;


More information about the MPlayer-cvslog mailing list