From ad53c7f9ece7f95cd9538775fb6fd7a17eb1d301 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 7 Mar 2012 22:13:39 +0100 Subject: 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 --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ffmpeg.c') 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; -- cgit v1.2.3