[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec oggvorbis.c,1.21,1.22

Michael Niedermayer CVS michael
Sun Sep 4 11:03:04 CEST 2005


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

Modified Files:
	oggvorbis.c 
Log Message:
pts must be in time_base units


Index: oggvorbis.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/oggvorbis.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- oggvorbis.c	2 Sep 2005 17:12:16 -0000	1.21
+++ oggvorbis.c	4 Sep 2005 09:03:01 -0000	1.22
@@ -145,7 +145,7 @@
         op2->packet = context->buffer + sizeof(ogg_packet);
 
         l=  op2->bytes;
-        avccontext->coded_frame->pts= op2->granulepos;
+        avccontext->coded_frame->pts= av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base);
 
         memcpy(packets, op2->packet, l);
         context->buffer_index -= l + sizeof(ogg_packet);





More information about the ffmpeg-cvslog mailing list