[FFmpeg-cvslog] avcodec/vda_h264_dec: avoid declaring int in for arguments
Michael Niedermayer
git at videolan.org
Sun Dec 29 03:35:38 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 29 03:10:08 2013 +0100| [fead24141af0ed162b0bebd1764ab147690a02f3] | committer: Michael Niedermayer
avcodec/vda_h264_dec: avoid declaring int in for arguments
Some compilers dont support that
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fead24141af0ed162b0bebd1764ab147690a02f3
---
libavcodec/vda_h264_dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c
index d2ef5dc..c00e7e4 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 ||
More information about the ffmpeg-cvslog
mailing list