diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avformat.h | 1 | ||||
-rw-r--r-- | libavformat/dv.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 7b64e0bbd8..d1db5f3a55 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -251,6 +251,7 @@ typedef struct AVFormatContext { AVStream *streams[MAX_STREAMS]; char filename[1024]; /* input or output filename */ /* stream info */ + int64_t timestamp; char title[512]; char author[512]; char copyright[512]; diff --git a/libavformat/dv.c b/libavformat/dv.c index 6ff94a7ff8..71033d2718 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -685,7 +685,7 @@ DVMuxContext* dv_init_mux(AVFormatContext* s) /* Ok, everything seems to be in working order */ c->frames = 0; c->has_audio = c->has_video = 0; - c->start_time = 0; + c->start_time = (time_t)s->timestamp; c->aspect = 0; /* 4:3 is the default */ if ((int)(av_q2d(vst->codec.sample_aspect_ratio) * vst->codec.width / vst->codec.height * 10) == 17) /* 16:9 */ c->aspect = 0x07; |