diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-17 20:12:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-17 20:12:44 +0000 |
commit | 48291040ea28698efa707c002cff87c2f288e771 (patch) | |
tree | 51c84170f17b3605d5342b1196757cbf4b5adfaf | |
parent | 40cb57a287977f8b88657abf30e8787477d6c448 (diff) | |
download | ffmpeg-48291040ea28698efa707c002cff87c2f288e771.tar.gz |
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
Originally committed as revision 12134 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1826,10 +1826,7 @@ static int av_encode(AVFormatContext **output_files, ist = ist_table[i]; is = input_files[ist->file_index]; ist->pts = 0; - ist->next_pts=0; - 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->next_pts = AV_NOPTS_VALUE; ist->is_start = 1; } |