diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-12 22:23:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-12 22:23:16 +0000 |
commit | 31179d85cba5fe6abc15fa39203936cc66131dec (patch) | |
tree | 7dd62c65857b44fa4de875024708d55afabd069e /libavformat/nut.c | |
parent | 75553f825c3a076ac031e8bb2a25f5c6a65dd893 (diff) | |
download | ffmpeg-31179d85cba5fe6abc15fa39203936cc66131dec.tar.gz |
store correct pts
Originally committed as revision 3008 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 1783b1606f..a62a360074 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -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; |