OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc298fd
)
Set ist->pts to something that isnt guranteed to entangle itself with stream copying...
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Feb 2010 22:06:36 +0000
(22:06 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Feb 2010 22:06:36 +0000
(22:06 +0000)
Originally committed as revision 22010 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
ecaa7e1
..
9bc509d
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-2090,8
+2090,10
@@
static int av_encode(AVFormatContext **output_files,
/* init pts */
for(i=0;i<nb_istreams;i++) {
+ AVStream *st;
ist = ist_table[i];
- ist->pts = 0;
+ st= ist->st;
+ ist->pts = st->avg_frame_rate.num ? - st->codec->has_b_frames*AV_TIME_BASE / av_q2d(st->avg_frame_rate) : 0;
ist->next_pts = AV_NOPTS_VALUE;
ist->is_start = 1;
}