diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2004-04-06 06:31:12 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2004-04-06 06:31:12 +0000 |
commit | 4568325a1810ea5d829230dc5e9ef0e56c51632f (patch) | |
tree | 7285032dd6413a353e2832e33af8598a50ab60bc /libavformat | |
parent | 8c266f0cb76b5f293f257227ba66f68c0914257d (diff) | |
download | ffmpeg-4568325a1810ea5d829230dc5e9ef0e56c51632f.tar.gz |
* making it possible to specify recording date and time in a stream
Originally committed as revision 2971 to svn://svn.ffmpeg.org/ffmpeg/trunk
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; |