[FFmpeg-cvslog] a64multienc: change mc_frame_counter to unsigned

Janne Grunau git at videolan.org
Thu Oct 11 14:08:55 CEST 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Thu Sep 20 09:34:35 2012 +0000| [706a559b30087f18ceb533be2c528ac2ff9d96ca] | committer: Janne Grunau

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>

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

 libavcodec/a64enc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ffmpeg-cvslog mailing list