Mercurial > libavcodec.hg
changeset 2857:303b270eee3d libavcodec
pts must be in time_base units
author | michael |
---|---|
date | Sun, 04 Sep 2005 09:03:01 +0000 |
parents | 9211043e0784 |
children | 99a5981878a2 |
files | oggvorbis.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/oggvorbis.c Sat Sep 03 20:36:24 2005 +0000 +++ b/oggvorbis.c Sun Sep 04 09:03:01 2005 +0000 @@ -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);