[FFmpeg-cvslog] avcodec/vp3: Reuse local variable in unpack_superblocks()

Michael Niedermayer git at videolan.org
Mon Oct 29 18:02:43 EET 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Oct 28 12:49:40 2018 +0100| [f563180817774e5fdd17e32992dce4fa01dbf881] | committer: Michael Niedermayer

avcodec/vp3: Reuse local variable in unpack_superblocks()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/vp3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 348416b25d..d8421a8315 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list