]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Set initial next_pts to unknown, this avoids the nonsense timestamp
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 17 Feb 2008 20:12:44 +0000 (20:12 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 17 Feb 2008 20:12:44 +0000 (20:12 +0000)
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

ffmpeg.c

index cd47b205157d8f8d1e62f60228c8cd9fba7154e9..36d6a293ebb1f78d93a5918224ed7e50066fc992 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;
     }