diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-09-20 09:34:35 +0000 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-10-10 15:33:06 +0200 |
commit | 706a559b30087f18ceb533be2c528ac2ff9d96ca (patch) | |
tree | 36329429857c8699ed911425a7db77e036f89e9c | |
parent | 507dce2536fea4b78a9f4973f77e1fa20cfe1b81 (diff) | |
download | ffmpeg-706a559b30087f18ceb533be2c528ac2ff9d96ca.tar.gz |
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@jannau.net>
-rw-r--r-- | libavcodec/a64enc.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |