[SCM] libav/experimental: 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
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:15:10 UTC 2013
The following commit has been merged in the experimental branch:
commit 48291040ea28698efa707c002cff87c2f288e771
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sun Feb 17 20:12:44 2008 +0000
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
diff --git a/ffmpeg.c b/ffmpeg.c
index cd47b20..36d6a29 100644
--- 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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list