aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-13 21:01:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-13 21:08:43 +0100
commit16b771b1f47daa9fec84477040984d83a92ba4a6 (patch)
treee48b9580b9e342f26005a3e96bf430d39cb4d289 /libavcodec
parentb39e01a6e887745192da8c105ffac1f297b00da9 (diff)
downloadffmpeg-16b771b1f47daa9fec84477040984d83a92ba4a6.tar.gz
cleanup: for(int
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresenc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c
index d27719d368..8cdcff3c49 100644
--- a/libavcodec/proresenc.c
+++ b/libavcodec/proresenc.c
@@ -234,10 +234,10 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
int prev_run = 4;
int prev_level = 2;
- int run = 0, level, code;
- for (int i = 1; i < 64; i++) {
+ int run = 0, level, code, i, j;
+ for (i = 1; i < 64; i++) {
int indp = progressive_scan[i];
- for (int j = 0; j < blocks_per_slice; j++) {
+ for (j = 0; j < blocks_per_slice; j++) {
int val = QSCALE(qmat, indp, in[(j << 6) + indp]);
if (val) {
encode_codeword(pb, run, run_to_cb[FFMIN(prev_run, 15)]);
@@ -441,13 +441,13 @@ static int prores_encode_picture(AVCodecContext *avctx, AVFrame *pic,
{
int mb_width = (avctx->width + 15) >> 4;
int mb_height = (avctx->height + 15) >> 4;
- int hdr_size, sl_size;
+ int hdr_size, sl_size, i;
int mb_y, sl_data_size, qp;
int unsafe_bot, unsafe_right;
uint8_t *sl_data, *sl_data_sizes;
int slice_per_line = 0, rem = mb_width;
- for (int i = av_log2(DEFAULT_SLICE_MB_WIDTH); i >= 0; --i) {
+ for (i = av_log2(DEFAULT_SLICE_MB_WIDTH); i >= 0; --i) {
slice_per_line += rem >> i;
rem &= (1 << i) - 1;
}