[Ffmpeg-cvslog] r7759 - trunk/libavformat/asf.c

michael subversion
Mon Jan 29 15:54:55 CET 2007


Author: michael
Date: Mon Jan 29 15:54:55 2007
New Revision: 7759

Modified:
   trunk/libavformat/asf.c

Log:
fix seeking in wma


Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Mon Jan 29 15:54:55 2007
@@ -673,7 +673,8 @@
             asf->packet_multi_size -= asf->packet_obj_size;
             //printf("COMPRESS size  %d  %d  %d   ms:%d\n", asf->packet_obj_size, asf->packet_frag_timestamp, asf->packet_size_left, asf->packet_multi_size);
         }
-        if (asf_st->pkt.size != asf->packet_obj_size) { //FIXME is this condition sufficient?
+        if (   asf_st->pkt.size != asf->packet_obj_size
+            || asf_st->frag_offset + asf->packet_frag_size > asf_st->pkt.size) { //FIXME is this condition sufficient?
             if(asf_st->pkt.data){
                 av_log(s, AV_LOG_INFO, "freeing incomplete packet size %d, new %d\n", asf_st->pkt.size, asf->packet_obj_size);
                 asf_st->frag_offset = 0;




More information about the ffmpeg-cvslog mailing list