[Ffmpeg-cvslog] CVS: ffmpeg/libavformat avidec.c,1.87,1.88

Michael Niedermayer CVS michael
Thu Mar 2 15:50:33 CET 2006


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

Modified Files:
	avidec.c 
Log Message:
dwstart support


Index: avidec.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/avidec.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- avidec.c	2 Mar 2006 14:27:41 -0000	1.87
+++ avidec.c	2 Mar 2006 14:50:31 -0000	1.88
@@ -35,7 +35,6 @@
     int scale;
     int rate;
     int sample_size; /* size of one sample (or packet) (in the rate/scale sense) in bytes */
-    int start;
 
     int64_t cum_len; /* temporary storage (used during seek) */
 
@@ -313,7 +312,7 @@
             }
             av_set_pts_info(st, 64, ast->scale, ast->rate);
 
-            ast->start= get_le32(pb); /* start */
+            ast->cum_len=get_le32(pb); /* start */
             nb_frames = get_le32(pb);
 
             st->start_time = 0;
@@ -344,6 +343,7 @@
                 av_log(s, AV_LOG_ERROR, "unknown stream type %X\n", tag1);
                 goto fail;
             }
+            ast->frame_offset= ast->cum_len * FFMAX(ast->sample_size, 1);
             url_fskip(pb, size - 12 * 4);
             break;
         case MKTAG('s', 't', 'r', 'f'):





More information about the ffmpeg-cvslog mailing list