[MPlayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.10,1.11

Nico Sabbi CVS syncmail at mplayerhq.hu
Sun Jan 30 10:13:30 CET 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv7820

Modified Files:
	demux_lavf.c 
Log Message:
discard lavf packets with wrong ids

Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- demux_lavf.c	24 Oct 2004 20:55:33 -0000	1.10
+++ demux_lavf.c	30 Jan 2005 09:13:28 -0000	1.11
@@ -292,8 +292,10 @@
             ds->sh=demux->v_streams[id];
             mp_msg(MSGT_DEMUX,MSGL_V,"Auto-selected LAVF video ID = %d\n",ds->id);
         }
-    } else
-        ds= NULL;
+    } else {
+        av_free_packet(&pkt);
+        return 1;
+    }
         
     if(0/*pkt.destruct == av_destruct_packet*/){
         //ok kids, dont try this at home :)




More information about the MPlayer-cvslog mailing list