summaryrefslogtreecommitdiff
path: root/src/codec
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-06-21 03:30:16 (GMT)
committerHaejeong Kim <backto.kim@samsung.com>2017-06-21 03:30:16 (GMT)
commit8ecadd7637f7da73ae44b691a1727208fecc145b (patch)
tree7a536c2d83322f317d282c15f4bb2cd51fb1ebf3 /src/codec
parent1302749f9709ea9e9cd9cd65380a409a472069cb (diff)
downloadlibmedia-thumbnail-8ecadd7637f7da73ae44b691a1727208fecc145b.zip
libmedia-thumbnail-8ecadd7637f7da73ae44b691a1727208fecc145b.tar.gz
libmedia-thumbnail-8ecadd7637f7da73ae44b691a1727208fecc145b.tar.bz2
Change-Id: I5b268111167b31d70835835234bb9c9a19b44d5a
Diffstat (limited to 'src/codec')
-rwxr-xr-xsrc/codec/img-codec-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/img-codec-parser.c b/src/codec/img-codec-parser.c
index 2b50e3a..70f9587 100755
--- a/src/codec/img-codec-parser.c
+++ b/src/codec/img-codec-parser.c
@@ -422,11 +422,11 @@ static int _ImgGetImageInfo(HFile hFile, unsigned long fileSize, char *fileExt,
#if 1
if (imagecount == 0) {
/* Regard the width/height of the first image block as the size of thumbnails. */
- int img_block_w, img_block_h;
+ int img_block_w = 0, img_block_h = 0;
img_block_w = EncodedDataBuffer[ifegstreamctrl.buffpos + 4] |(EncodedDataBuffer[ifegstreamctrl.buffpos + 5] << 8);
img_block_h = EncodedDataBuffer[ifegstreamctrl.buffpos + 6] |(EncodedDataBuffer[ifegstreamctrl.buffpos + 7] << 8);
- thumb_dbg("Image block width : %d, Height : %d, left : %d, top : %d", img_block_w, img_block_h);
+ thumb_dbg("Image block width : %d, Height : %d", img_block_w, img_block_h);
*pWidth = img_block_w;
*pHeight = img_block_h;