# HG changeset patch # User romansh # Date 1081233072 0 # Node ID e440fb8844423d4d8cf747ff4451b84cd6242e74 # Parent 51c25922a54349b44990a87c5e243a556ee5acd1 * making it possible to specify recording date and time in a stream diff -r 51c25922a543 -r e440fb884442 avformat.h --- 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]; diff -r 51c25922a543 -r e440fb884442 dv.c --- 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;