ffmpeg | branch: master | Mark Thompson <s...@jkqxz.net> | Wed Sep 27 01:48:37 
2017 +0100| [e0a967a405463ac581b5861b8bf45fa67c4a3a2f] | committer: Mark 
Thompson

cinepakenc: Move declaration out of for initialisation statement

(cherry picked from commit 92f0aceb36c6e4412d4cf346e70dc74b5a4069e9)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0a967a405463ac581b5861b8bf45fa67c4a3a2f
---

 libavcodec/cinepakenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c
index a28f669070..330c8827d1 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -994,8 +994,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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to