[libav-devel] [PATCH 4/5] msmpeg4: Don't set up run-level info for level 0.

Alex Converse alex.converse at gmail.com
Fri Nov 4 00:28:07 CET 2011


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

diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index 93191cc..84e6249 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -266,7 +266,7 @@ av_cold void ff_msmpeg4_encode_init(MpegEncContext *s)
 
         for(i=0; i<NB_RL_TABLES; i++){
             int level;
-            for(level=0; level<=MAX_LEVEL; level++){
+            for (level = 1; level <= MAX_LEVEL; level++) {
                 int run;
                 for(run=0; run<=MAX_RUN; run++){
                     int last;
-- 
1.7.3.1



More information about the libav-devel mailing list