Fix svace 2.2 issue 75/100675/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 29 Nov 2016 02:40:52 +0000 (11:40 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 29 Nov 2016 02:40:52 +0000 (11:40 +0900)
Change-Id: I9d2cbee7c36ed5b725adee77468b23763b412819
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/libmedia-thumbnail.spec
src/codec/IfegDecodeAGIF.c

index 41abfd9..9583720 100644 (file)
@@ -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
index b6a08f2..28c6520 100755 (executable)
@@ -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;
                                }