[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h263.c,1.281,1.282

Michael Niedermayer CVS michael
Sat May 14 01:11:34 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv17844

Modified Files:
	h263.c 
Log Message:
10l (%f vs. %Ld)


Index: h263.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h263.c,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -d -r1.281 -r1.282
--- h263.c	11 May 2005 17:13:42 -0000	1.281
+++ h263.c	13 May 2005 23:11:32 -0000	1.282
@@ -2425,6 +2425,7 @@
     put_bits(&s->pb, 16, VOP_STARTCODE);	/* vop header */
     put_bits(&s->pb, 2, s->pict_type - 1);	/* pict type: I = 0 , P = 1 */
 
+    assert(s->time>=0);
     time_div= s->time/s->avctx->time_base.den;
     time_mod= s->time%s->avctx->time_base.den;
     time_incr= time_div - s->last_time_base;
@@ -5856,7 +5857,7 @@
     
     s->current_picture_ptr->pts= (s->time + s->avctx->time_base.num/2) / s->avctx->time_base.num;
     if(s->avctx->debug&FF_DEBUG_PTS)
-        av_log(s->avctx, AV_LOG_DEBUG, "MPEG4 PTS: %f\n", s->current_picture_ptr->pts);
+        av_log(s->avctx, AV_LOG_DEBUG, "MPEG4 PTS: %Ld\n", s->current_picture_ptr->pts);
 
     check_marker(gb, "before vop_coded");
     





More information about the ffmpeg-cvslog mailing list