Module: libav
Branch: master
Commit: 9b4767e4784577f3107730316fe652ccaccd9b3a

Author:    Janne Grunau <[email protected]>
Committer: Janne Grunau <[email protected]>
Date:      Tue Jan  3 13:38:01 2012 +0100

vp3: fix streams with non-zero last coefficient

Fixes a regression introduced in 8b94df0f2047e972.

---

 libavcodec/vp3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index f44d084..602b5fa 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1378,6 +1378,8 @@ static inline int vp3_dequant(Vp3DecodeContext *s, 
Vp3Fragment *frag,
             return i;
         }
     } while (i < 64);
+    // return value is expected to be a valid level
+    i--;
 end:
     // the actual DC+prediction is in the fragment structure
     block[0] = frag->dc * s->qmat[0][inter][plane][0];

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to