Commit 3805cca2 authored by michael's avatar michael

Set ist->pts to something that isnt guranteed to entangle itself with stream copying b frames.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22010 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 86e2c26e
...@@ -2090,8 +2090,10 @@ static int av_encode(AVFormatContext **output_files, ...@@ -2090,8 +2090,10 @@ static int av_encode(AVFormatContext **output_files,
/* init pts */ /* init pts */
for(i=0;i<nb_istreams;i++) { for(i=0;i<nb_istreams;i++) {
AVStream *st;
ist = ist_table[i]; 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->next_pts = AV_NOPTS_VALUE;
ist->is_start = 1; ist->is_start = 1;
} }
......
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