Commit 1a28d9e7 authored by michael's avatar michael

Set initial next_pts to unknown, this avoids the nonsense timestamp

discontinuity at the start. I hope this has no sideeffects, if it does
send a bugreport!
fixes issue137


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12134 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 05fe1d69
...@@ -1826,10 +1826,7 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1826,10 +1826,7 @@ static int av_encode(AVFormatContext **output_files,
ist = ist_table[i]; ist = ist_table[i];
is = input_files[ist->file_index]; is = input_files[ist->file_index];
ist->pts = 0; ist->pts = 0;
ist->next_pts=0; ist->next_pts = AV_NOPTS_VALUE;
if( input_files_ts_offset[ist->file_index] != -is->start_time
&& !(is->start_time == AV_NOPTS_VALUE && input_files_ts_offset[ist->file_index]==0))
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