diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-09-04 09:03:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-09-04 09:03:01 +0000 |
commit | 42661adfe61caa52b9b2e533f4a42356b1b5e162 (patch) | |
tree | ec95d21e9cb0659d0290bf760a84c5bde22848a1 | |
parent | 78e035162c471ba78af4bcc348a967197c62fa17 (diff) | |
download | ffmpeg-42661adfe61caa52b9b2e533f4a42356b1b5e162.tar.gz |
pts must be in time_base units
Originally committed as revision 4556 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/oggvorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/oggvorbis.c b/libavcodec/oggvorbis.c index 4d23cba5f9..4e4ae2548c 100644 --- a/libavcodec/oggvorbis.c +++ b/libavcodec/oggvorbis.c @@ -145,7 +145,7 @@ static int oggvorbis_encode_frame(AVCodecContext *avccontext, 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); |