Mercurial > libavformat.hg
changeset 420:e440fb884442 libavformat
* making it possible to specify recording date and time in a stream
author | romansh |
---|---|
date | Tue, 06 Apr 2004 06:31:12 +0000 |
parents | 51c25922a543 |
children | a35263593560 |
files | avformat.h dv.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avformat.h Mon Apr 05 22:00:59 2004 +0000 +++ b/avformat.h Tue Apr 06 06:31:12 2004 +0000 @@ -251,6 +251,7 @@ 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];
--- a/dv.c Mon Apr 05 22:00:59 2004 +0000 +++ b/dv.c Tue Apr 06 06:31:12 2004 +0000 @@ -685,7 +685,7 @@ /* 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;