Commit 12287c55 authored by michael's avatar michael

store correct pts


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3008 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cd8311b4
......@@ -645,6 +645,8 @@ static int nut_write_packet(AVFormatContext *s, int stream_index,
enc = &s->streams[stream_index]->codec;
key_frame = enc->coded_frame->key_frame;
if(enc->coded_frame->pts != AV_NOPTS_VALUE)
pts= (av_rescale(enc->coded_frame->pts, stream->rate_num, stream->rate_den) + AV_TIME_BASE/2) / AV_TIME_BASE; //FIXME XXX HACK
delta_pts= pts - stream->last_pts;
frame_type=0;
......
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