From 706a559b30087f18ceb533be2c528ac2ff9d96ca Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 20 Sep 2012 09:34:35 +0000 Subject: a64multienc: change mc_frame_counter to unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- libavcodec/a64enc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/a64enc.h') diff --git a/libavcodec/a64enc.h b/libavcodec/a64enc.h index bf5eb02cd1..d5f8e9ac99 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; -- cgit v1.2.3