diff libmpdemux/demux_avi.c @ 30937:f87bfe2885f2

Make audio switching with AVI demuxer chose the first audio stream if audio is disabled instead of ignoring the request.
author reimar
date Wed, 31 Mar 2010 18:45:00 +0000
parents 2ed1972eb23b
children 7b02012e9581
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c	Wed Mar 31 17:00:33 2010 +0000
+++ b/libmpdemux/demux_avi.c	Wed Mar 31 18:45:00 2010 +0000
@@ -801,7 +801,7 @@
 	    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;