projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75553f8
)
store correct pts
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Apr 2004 22:23:16 +0000
(22:23 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Apr 2004 22:23:16 +0000
(22:23 +0000)
Originally committed as revision 3008 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nut.c
patch
|
blob
|
history
diff --git
a/libavformat/nut.c
b/libavformat/nut.c
index
1783b16
..
a62a360
100644
(file)
--- 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;