[FFmpeg-devel] [PATCH 1/2] lavd/qtkit: Fix non-constant initializer element for some

Thilo Borgmann thilo.borgmann at mail.de
Mon Mar 31 14:27:07 CEST 2014


$Subject. Untested because it works for me without this. Feedback welcome or I
will have to wait for FATE.

-Thilo
-------------- next part --------------
>From 4c49ff4660ca7d59af5d312f4d1802b885785377 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at mail.de>
Date: Mon, 31 Mar 2014 14:16:26 +0200
Subject: [PATCH 1/2] lavd/qtkit: Fix non-constant initializer element for some
 clang compilers.

---
 libavdevice/qtkit.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavdevice/qtkit.m b/libavdevice/qtkit.m
index ddb78e4..593d2c0 100644
--- a/libavdevice/qtkit.m
+++ b/libavdevice/qtkit.m
@@ -35,11 +35,11 @@
 #include "libavutil/time.h"
 #include "avdevice.h"
 
-static const int kQTKitTimeBase = 100;
+#define QTKIT_TIMEBASE 100
 
 static const AVRational kQTKitTimeBase_q = {
     .num = 1,
-    .den = kQTKitTimeBase
+    .den = QTKIT_TIMEBASE
 };
 
 typedef struct
@@ -260,7 +260,7 @@ static int qtkit_read_header(AVFormatContext *s)
         goto fail;
     }
 
-    avpriv_set_pts_info(stream, 64, 1, kQTKitTimeBase);
+    avpriv_set_pts_info(stream, 64, 1, QTKIT_TIMEBASE);
 
     stream->codec->codec_id   = AV_CODEC_ID_RAWVIDEO;
     stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list