summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-09-27 01:48:37 +0100
committerMark Thompson <sw@jkqxz.net>2017-09-27 19:57:55 +0100
commit92f0aceb36c6e4412d4cf346e70dc74b5a4069e9 (patch)
treed1cedafaf84361b82dab500b23ed0358a629441d /libavcodec
parent2068d116db9883c71cb00b76e7d371cc30164d08 (diff)
downloadffmpeg-92f0aceb36c6e4412d4cf346e70dc74b5a4069e9.tar.gz
cinepakenc: Move declaration out of for initialisation statement
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cinepakenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c
index 00b3e75e4c..c323bde30f 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -891,8 +891,9 @@ static int rd_strip(CinepakEncContext *s, int y, int h, int keyframe,
#define SMALLEST_CODEBOOK 1
for (v1enough = 0, v1_size = SMALLEST_CODEBOOK; v1_size <= CODEBOOK_MAX && !v1enough; v1_size <<= 2) {
for (v4enough = 0, v4_size = 0; v4_size <= v1_size && !v4enough; v4_size = v4_size ? v4_size << 2 : v1_size >= SMALLEST_CODEBOOK << 2 ? v1_size >> 2 : SMALLEST_CODEBOOK) {
+ CinepakMode mode;
// try all modes
- for (CinepakMode mode = 0; mode < MODE_COUNT; mode++) {
+ for (mode = 0; mode < MODE_COUNT; mode++) {
// don't allow MODE_MC in intra frames
if (keyframe && mode == MODE_MC)
continue;