]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/vp3: Reuse local variable in unpack_superblocks()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Oct 2018 11:49:40 +0000 (12:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Oct 2018 16:00:49 +0000 (17:00 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vp3.c

index 348416b25d9968f8f13e29e61d4b8702b205ea80..d8421a8315be9052a401ab799ef7acb7ca7ece82 100644 (file)
@@ -568,7 +568,7 @@ static int unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb)
                 if (current_fragment != -1) {
                     int coded = s->superblock_coding[i];
 
-                    if (s->superblock_coding[i] == SB_PARTIALLY_CODED) {
+                    if (coded == SB_PARTIALLY_CODED) {
                         /* fragment may or may not be coded; this is the case
                          * that cares about the fragment coding runs */
                         if (current_run-- == 0) {