lavd/qtkit: Fix non-constant initializer element for some clang compilers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
9d013fe840
commit
d5c0036d4a
@@ -35,11 +35,11 @@
|
|||||||
#include "libavutil/time.h"
|
#include "libavutil/time.h"
|
||||||
#include "avdevice.h"
|
#include "avdevice.h"
|
||||||
|
|
||||||
static const int kQTKitTimeBase = 100;
|
#define QTKIT_TIMEBASE 100
|
||||||
|
|
||||||
static const AVRational kQTKitTimeBase_q = {
|
static const AVRational kQTKitTimeBase_q = {
|
||||||
.num = 1,
|
.num = 1,
|
||||||
.den = kQTKitTimeBase
|
.den = QTKIT_TIMEBASE
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -213,7 +213,7 @@ static int qtkit_read_header(AVFormatContext *s)
|
|||||||
goto fail;
|
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_id = AV_CODEC_ID_RAWVIDEO;
|
||||||
stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
stream->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
|
Reference in New Issue
Block a user