diff options
-rw-r--r-- | packaging/libmedia-thumbnail.spec | 2 | ||||
-rwxr-xr-x | src/codec/IfegDecodeAGIF.c | 36 |
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; } |