summaryrefslogtreecommitdiff
path: root/libavcodec/vda_h264_dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-29 03:10:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-29 03:16:28 +0100
commitfead24141af0ed162b0bebd1764ab147690a02f3 (patch)
tree8d5d72cb2b0745cdceba98f78801a2b9b34f12ac /libavcodec/vda_h264_dec.c
parent3477874abdd4a892ec3df2a9685ed959e2f73f21 (diff)
avcodec/vda_h264_dec: avoid declaring int in for arguments
Some compilers dont support that Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vda_h264_dec.c')
-rw-r--r--libavcodec/vda_h264_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
index d2ef5dc9a6..c00e7e4e15 100644
--- a/libavcodec/vda_h264_dec.c
+++ b/libavcodec/vda_h264_dec.c
@@ -180,7 +180,7 @@ static av_cold int vdadec_init(AVCodecContext *avctx)
VDADecoderContext *ctx = avctx->priv_data;
struct vda_context *vda_ctx = &ctx->vda_ctx;
OSStatus status;
- int ret;
+ int ret, i;
ctx->h264_initialized = 0;
@@ -235,7 +235,7 @@ static av_cold int vdadec_init(AVCodecContext *avctx)
}
ctx->h264_initialized = 1;
- for (int i = 0; i < MAX_SPS_COUNT; i++) {
+ for (i = 0; i < MAX_SPS_COUNT; i++) {
SPS *sps = ctx->h264ctx.sps_buffers[i];
if (sps && (sps->bit_depth_luma != 8 ||
sps->chroma_format_idc == 2 ||