Commit 42661adf authored by Michael Niedermayer's avatar Michael Niedermayer

pts must be in time_base units

Originally committed as revision 4556 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 78e03516
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment