[Ffmpeg-cvslog] CVS: ffmpeg/libavformat adtsenc.c,1.3,1.4

Baptiste Coudurier CVS bcoudurier
Mon Mar 27 18:43:07 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv21874/libavformat

Modified Files:
	adtsenc.c 
Log Message:
skip 0byte packets

Index: adtsenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/adtsenc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- adtsenc.c	27 Mar 2006 10:36:22 -0000	1.3
+++ adtsenc.c	27 Mar 2006 16:43:04 -0000	1.4
@@ -97,6 +97,8 @@
     ADTSContext *adts = s->priv_data;
     ByteIOContext *pb = &s->pb;
 
+    if (!pkt->size)
+        return 0;
     if(adts->write_adts)
         adts_write_frame_header(s, pkt->size);
     put_buffer(pb, pkt->data, pkt->size);





More information about the ffmpeg-cvslog mailing list