Browse Source

avcodec/vda_h264_dec: avoid declaring int in for arguments

Some compilers dont support that

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
fead24141a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vda_h264_dec.c

+ 2
- 2
libavcodec/vda_h264_dec.c View File

@@ -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 ||


Loading…
Cancel
Save