summaryrefslogtreecommitdiff
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-17 23:51:10 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-17 23:59:20 +0200
commit6eaaf8da88f8fff9160c92c84128c182f934e0d9 (patch)
treea0cf82b26ddf5483f41748e5ce407afe0fa569f2 /libavformat/gxfenc.c
parent8f62ef0f95cd0bc915086a9d3d66b27fceb6916f (diff)
gxfenc: place variable declarations before statements
libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r--libavformat/gxfenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 11e1ea5798..89969b26e1 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -396,6 +396,7 @@ static int gxf_write_umf_material_description(AVFormatContext *s)
int timecode_base = gxf->time_base.den == 60000 ? 60 : 50;
int64_t timestamp = 0;
AVDictionaryEntry *t;
+ uint32_t timecode;
#if FF_API_TIMESTAMP
if (s->timestamp)
@@ -406,7 +407,7 @@ static int gxf_write_umf_material_description(AVFormatContext *s)
timestamp = ff_iso8601_to_unix_time(t->value);
// XXX drop frame
- uint32_t timecode =
+ timecode =
gxf->nb_fields / (timecode_base * 3600) % 24 << 24 | // hours
gxf->nb_fields / (timecode_base * 60) % 60 << 16 | // minutes
gxf->nb_fields / timecode_base % 60 << 8 | // seconds