[libav-commits] a64multienc: change mc_frame_counter to unsigned

Janne Grunau git at libav.org
Wed Oct 10 15:41:41 CEST 2012


Module: libav
Branch: master
Commit: 706a559b30087f18ceb533be2c528ac2ff9d96ca

Author:    Janne Grunau <janne-libav at jannau.net>
Committer: Janne Grunau <janne-libav at jannau.net>
Date:      Thu Sep 20 09:34:35 2012 +0000

a64multienc: change mc_frame_counter to unsigned

GCC cannot proof that c->mc_frame_counter is always >- 0, changing the
type from int to unsigned fixes following warning:

libavcodec/a64multienc.c: In function ‘a64multi_encode_frame’:
libavcodec/a64multienc.c:342:17: warning: ‘buf’ may be used uninitialized in this function[-Wuninitialized]

Signed-off-by: Janne Grunau <janne-libav at jannau.net>

---

 libavcodec/a64enc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/a64enc.h b/libavcodec/a64enc.h
index bf5eb02..d5f8e9a 100644
--- a/libavcodec/a64enc.h
+++ b/libavcodec/a64enc.h
@@ -41,7 +41,7 @@ typedef struct A64Context {
     AVLFG randctx;
     int mc_lifetime;
     int mc_use_5col;
-    int mc_frame_counter;
+    unsigned mc_frame_counter;
     int *mc_meta_charset;
     int *mc_charmap;
     int *mc_best_cb;



More information about the libav-commits mailing list