summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-07 22:13:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-09 19:36:12 +0100
commitad53c7f9ece7f95cd9538775fb6fd7a17eb1d301 (patch)
treea3eb24614d470ec588bce56268f96c327b0d5c70 /ffmpeg.c
parentd07de6d75d36e9e953be7f0cdf82148c31a09b8a (diff)
lavf: Add system to seperate relative timestamps from absolute ones.
With this we can always know if a timestamp is based on added durations from an unknown origin or if it is based on a correct timestamp (and possibly added durations) This should fix some bugs where this distinction was mixed up. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 609d1121fb..4714b616a7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4258,6 +4258,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
// FIXME: a more elegant solution is needed
memcpy(st, ic->streams[i], sizeof(AVStream));
+ st->cur_dts = 0;
st->info = av_malloc(sizeof(*st->info));
memcpy(st->info, ic->streams[i]->info, sizeof(*st->info));
st->codec= avctx;