diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-22 01:07:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-22 01:07:16 +0100 |
commit | 305a935968e2b7d917e2fd273c50a5713dfd7104 (patch) | |
tree | 43337e33058cc490bd51b10722373e3dae33f85f /libavcodec/brender_pix.c | |
parent | 492a5f835c59ab7c2e347d3579d8bf6148ae0a09 (diff) | |
download | ffmpeg-streaming-305a935968e2b7d917e2fd273c50a5713dfd7104.zip ffmpeg-streaming-305a935968e2b7d917e2fd273c50a5713dfd7104.tar.gz |
brender: move declaration out of for() to make old compilers happy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/brender_pix.c')
-rw-r--r-- | libavcodec/brender_pix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c index 8440255..886e8fb 100644 --- a/libavcodec/brender_pix.c +++ b/libavcodec/brender_pix.c @@ -162,6 +162,7 @@ static int brpix_decode_frame(AVCodecContext *avctx, (chunk_type == 0x3 || chunk_type == 0x3d)) { BRPixHeader palhdr; uint32_t *pal_out = (uint32_t *)s->frame.data[1]; + int i; ret = brpix_decode_header(&palhdr, &gb); if (!ret) { @@ -182,7 +183,7 @@ static int brpix_decode_frame(AVCodecContext *avctx, return AVERROR_INVALIDDATA; } // convert 0RGB to machine endian format (ARGB32) - for (int i = 0; i < 256; ++i) { + for (i = 0; i < 256; ++i) { bytestream2_skipu(&gb, 1); *pal_out++ = (0xFFU << 24) | bytestream2_get_be24u(&gb); } |