summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-11-29 02:40:52 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2016-11-29 02:40:52 (GMT)
commit038271980959429009937ce211fdff115fca946c (patch)
tree1ce44f90f9c7ef916c7bf2017bc3c8fbf1f48395
parent113d6661f2b907669fe534ec9fd1bfd89ba3e2ad (diff)
downloadlibmedia-thumbnail-038271980959429009937ce211fdff115fca946c.zip
libmedia-thumbnail-038271980959429009937ce211fdff115fca946c.tar.gz
libmedia-thumbnail-038271980959429009937ce211fdff115fca946c.tar.bz2
Fix svace 2.2 issuerefs/changes/75/100675/1
Change-Id: I9d2cbee7c36ed5b725adee77468b23763b412819 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rw-r--r--packaging/libmedia-thumbnail.spec2
-rwxr-xr-xsrc/codec/IfegDecodeAGIF.c36
2 files changed, 5 insertions, 33 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 41abfd9..9583720 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,6 +1,6 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications
-Version: 0.1.99
+Version: 0.1.100
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0 and public domain
diff --git a/src/codec/IfegDecodeAGIF.c b/src/codec/IfegDecodeAGIF.c
index b6a08f2..28c6520 100755
--- a/src/codec/IfegDecodeAGIF.c
+++ b/src/codec/IfegDecodeAGIF.c
@@ -1030,21 +1030,8 @@ int __FastImgGetNextFrameAGIF_NoBuffer(AGifFrameInfo *pFrameData, BOOL bCenterAl
/* __get_next_code(pInputStream) */
- if (navail_bytes < 2) {
- if (nbits_left == 0) {
- __get_next_code_first_nbits_left_0_nobuffer(pInputStream)
- } else
- __get_next_code_first_nbits_left_not_0(pInputStream)
-
- __get_next_code_first_while_nobuffer(pInputStream)
- } else {
- if (nbits_left == 0)
- __get_next_code_second_nbits_left_0(pInputStream)
- else
- __get_next_code_second_nbits_left_not_0(pInputStream)
-
- __get_next_code_second_while(pInputStream)
- }
+ __get_next_code_first_nbits_left_0_nobuffer(pInputStream)
+ __get_next_code_first_while_nobuffer(pInputStream)
if (c == ending) {
break;
@@ -2090,10 +2077,6 @@ int __FastImgGetNextFrameAGIF_UseBuffer(AGifFrameInfo *pFrameData, BOOL bCenterA
IfegMemFree(decoderline);
decoderline = 0;
}
- if (pDecBuf != 0) {
- IfegMemFree(pDecBuf);
- pDecBuf = 0;
- }
return 0;
}
@@ -2288,20 +2271,9 @@ int __FastImgGetNextFrameAGIF_UseBuffer(AGifFrameInfo *pFrameData, BOOL bCenterA
/* __get_next_code(pInputStream) */
- if (navail_bytes < 2) {
- if (nbits_left == 0)
- __get_next_code_first_nbits_left_0(pInputStream)
- else
- __get_next_code_first_nbits_left_not_0(pInputStream)
- __get_next_code_first_while(pInputStream)
- } else {
- if (nbits_left == 0)
- __get_next_code_second_nbits_left_0(pInputStream)
- else
- __get_next_code_second_nbits_left_not_0(pInputStream)
+ __get_next_code_first_nbits_left_0(pInputStream)
+ __get_next_code_first_while(pInputStream)
- __get_next_code_second_while(pInputStream)
- }
if (c == ending) {
break;
}