Remove unused code and apply coding rule 76/224176/2 accepted/tizen/unified/20200210.131829 submit/tizen/20200207.024848
authorjiyong.min <jiyong.min@samsung.com>
Fri, 7 Feb 2020 02:17:48 +0000 (11:17 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Fri, 7 Feb 2020 02:23:45 +0000 (11:23 +0900)
Change-Id: I13287f489082df64e03fb06208b60b588a3f4d5c

formats/ffmpeg/include/mm_file_format_audio.h
formats/ffmpeg/mm_file_format_mp3.c
utils/include/mm_file_utils.h

index fb838f783a7ebcf7d85a9b78f4c3843ac928b625..11b08f0c31fb15238aee78a0a4172739e94b6c9c 100755 (executable)
 #define MASK_PADDING   0x02    /* 00000010 */
 
 #define _AV_MP3_HEADER_POSITION_MAX            (50*1024) /* mp3 header should be exist inside this size */
-#define AV_MP3_HEADER_READ_MAX                 200000 /* mp3 header should be exist inside this size */
-#define AV_WM_LOCALCODE_SIZE_MAX               2
 
 /*
  *     Xing Header Information
index 144dce1c27ca97b09c17457ea01c7707ecf3a2af..db1408beaf5a1dd8eb2cad1c8dd85455d67350fb 100644 (file)
@@ -1157,7 +1157,7 @@ static int mmf_file_mp3_get_stream_info(char *filename, AvFileContentInfo *pInfo
 
        debug_fenter(RELEASE);
 
-       if (pInfo == NULL || filename == NULL)
+       if (!pInfo || !filename)
                return -1;
 
        memset(pInfo, 0x00, sizeof(AvFileContentInfo));
@@ -1202,6 +1202,7 @@ static int mmf_file_mp3_get_stream_info(char *filename, AvFileContentInfo *pInfo
                /* if taglen is invlaid, check whole file to get MP3 info */
                if (mmfile_seek(hFile, 0L, SEEK_SET) < 0)
                        goto EXCEPTION;
+
                pInfo->tagV2Info.tagLen = 0;
                bufLen = pInfo->fileLen;
        }
@@ -1209,9 +1210,8 @@ static int mmf_file_mp3_get_stream_info(char *filename, AvFileContentInfo *pInfo
        debug_msg(RELEASE, "buf size(%lu)\n", bufLen);
 
        buf = mmfile_malloc(bufLen);
-       if (!buf) {
+       if (!buf)
                goto EXCEPTION;
-       }
 
        if (mmfile_read(hFile, buf, bufLen) != (int)bufLen) {
                mmfile_free(buf);
index a590eba63ea23d161eb8d94b59f6109629f5da2c..364d0809c025ca8b1b01c3cb4dd91b28d6d3fa0a 100755 (executable)
@@ -281,7 +281,6 @@ inline static int __AvMemstr(unsigned char *mem, unsigned char *str, int str_len
 #define NEWLINE_OF_UTF16_R(x)  (((x))[0] == 0xFE && ((x))[1] == 0xFF && ((x))[2] == 0x00 && ((x))[3] == 0x00)
 
 
-#define AV_WM_LOCALCODE_SIZE_MAX               2
 #define MP3_TAGv2_HEADER_LEN 10
 #define MP3_TAGv2_23_TXT_HEADER_LEN 10
 #define MP3_TAGv2_22_TXT_HEADER_LEN 6