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

reimar subversion at mplayerhq.hu
Tue Dec 30 09:59:20 CET 2014


Author: reimar
Date: Tue Dec 30 09:59:20 2014
New Revision: 37346

Log:
demux_avi.c: Minor simplification.

Modified:
   trunk/libmpdemux/demux_avi.c

Modified: trunk/libmpdemux/demux_avi.c
==============================================================================
--- trunk/libmpdemux/demux_avi.c	Tue Dec 30 09:59:18 2014	(r37345)
+++ trunk/libmpdemux/demux_avi.c	Tue Dec 30 09:59:20 2014	(r37346)
@@ -72,12 +72,10 @@ static demux_stream_t *demux_avi_select_
   int stream_id=avi_stream_id(id);
 
 
-  if(demux->video->id==-1)
-    if(demux->v_streams[stream_id])
+  if(demux->video->id==-1 && demux->v_streams[stream_id])
         demux->video->id=stream_id;
 
-  if(demux->audio->id==-1)
-    if(demux->a_streams[stream_id])
+  if(demux->audio->id==-1 && demux->a_streams[stream_id])
         demux->audio->id=stream_id;
 
   if(stream_id==demux->audio->id){


More information about the MPlayer-cvslog mailing list