From f5dfd6edccb16158e253b18f161d177830d9d541 Mon Sep 17 00:00:00 2001 From: Munkyu Im Date: Thu, 6 Feb 2014 18:54:45 +0900 Subject: [PATCH] codec: initialize uninitialized variables some gcc version causes build error Change-Id: I8ee3344337dc6b79ac9147298e3e22737917807f Signed-off-by: Munkyu Im --- tizen/src/hw/maru_brill_codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tizen/src/hw/maru_brill_codec.c b/tizen/src/hw/maru_brill_codec.c index bca2362..92c4c12 100644 --- a/tizen/src/hw/maru_brill_codec.c +++ b/tizen/src/hw/maru_brill_codec.c @@ -1153,7 +1153,7 @@ static bool codec_decode_video(MaruBrillCodecState *s, int ctx_id, void *data_bu AVPacket avpkt; int got_picture = 0, len = -1; uint8_t *inbuf = NULL; - int inbuf_size, idx, size = 0; + int inbuf_size = 0, idx, size = 0; int64_t in_offset; DeviceMemEntry *elem = NULL; uint8_t *tempbuf = NULL; @@ -1392,7 +1392,7 @@ static bool codec_encode_video(MaruBrillCodecState *s, int ctx_id, void *data_bu uint8_t *inbuf = NULL, *outbuf = NULL; int inbuf_size, outbuf_size, len = -1; int ret, size = 0; - int64_t in_timestamp; + int64_t in_timestamp = 0; DeviceMemEntry *elem = NULL; uint8_t *tempbuf = NULL; @@ -1494,7 +1494,7 @@ static bool codec_encode_audio(MaruBrillCodecState *s, int ctx_id, void *data_bu { AVCodecContext *avctx; uint8_t *inbuf = NULL, *outbuf = NULL; - int32_t inbuf_size, max_size; + int32_t inbuf_size = 0, max_size = 0; int len = -1, size = 0; DeviceMemEntry *elem = NULL; -- 2.7.4