[MPlayer-cvslog] r37345 - trunk/libmpdemux/demux_asf.c

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


Author: reimar
Date: Tue Dec 30 09:59:18 2014
New Revision: 37345

Log:
demux_asf.c: Minor simplification.

Modified:
   trunk/libmpdemux/demux_asf.c

Modified: trunk/libmpdemux/demux_asf.c
==============================================================================
--- trunk/libmpdemux/demux_asf.c	Sat Dec 27 22:27:55 2014	(r37344)
+++ trunk/libmpdemux/demux_asf.c	Tue Dec 30 09:59:18 2014	(r37345)
@@ -115,12 +115,10 @@ static int demux_asf_read_packet(demuxer
 
   mp_dbg(MSGT_DEMUX,MSGL_DBG4,"demux_asf.read_packet: id=%d seq=%d len=%d\n",id,seq,len);
 
-  if(demux->video->id==-1)
-    if(demux->v_streams[id])
+  if(demux->video->id==-1 && demux->v_streams[id])
         demux->video->id=id;
 
-  if(demux->audio->id==-1)
-    if(demux->a_streams[id])
+  if(demux->audio->id==-1 && demux->a_streams[id])
         demux->audio->id=id;
 
   if(id==demux->audio->id){


More information about the MPlayer-cvslog mailing list