Change-Id: Ia611bd5fccd8027d6fc3610c41562f59266543ec
tagBuff = (unsigned char *) mmfile_malloc(hTag->fileLen);
if (tagBuff == NULL) {
ret = MMFILE_AAC_PARSER_FAIL;
tagBuff = (unsigned char *) mmfile_malloc(hTag->fileLen);
if (tagBuff == NULL) {
ret = MMFILE_AAC_PARSER_FAIL;
- debug_error(DEBUG, "failed to memory allocation. %d\n", hTag->fileLen);
+ debug_error(DEBUG, "failed to memory allocation. %lld\n", hTag->fileLen);
debug_error(DEBUG, "Found corrupted frames!!! Ignoring\n");
}
debug_error(DEBUG, "Found corrupted frames!!! Ignoring\n");
}
- debug_msg(RELEASE, "No of ADTS frames: %d\n", totalFrames);
+ debug_msg(RELEASE, "No of ADTS frames: %lld\n", totalFrames);
privateData->streamInfo.frameRate = privateData->streamInfo.samplingRate / AAC_ADTS_SAMPLES_PER_FRAME;
privateData->streamInfo.frameRate = privateData->streamInfo.samplingRate / AAC_ADTS_SAMPLES_PER_FRAME;
*frame = mmfile_malloc(*size);
if (NULL == *frame) {
*frame = mmfile_malloc(*size);
if (NULL == *frame) {
- debug_error(DEBUG, "error: avpicture_get_size. [%d]\n", size);
+ debug_error(DEBUG, "error: avpicture_get_size. [%d]\n", *size);
ret = MMFILE_FORMAT_FAIL;
goto exception;
}
ret = MMFILE_FORMAT_FAIL;
goto exception;
}
debug_msg(RELEASE, "size : %d", *size);
debug_msg(RELEASE, "width : %d", *width);
debug_msg(RELEASE, "height : %d", *height);
debug_msg(RELEASE, "size : %d", *size);
debug_msg(RELEASE, "width : %d", *width);
debug_msg(RELEASE, "height : %d", *height);
- debug_msg(RELEASE, "frame : %x", *frame);
+ debug_msg(RELEASE, "frame : %p", *frame);
ret = avpicture_fill((AVPicture *)pFrameRGB, *frame, PIX_FMT_RGB24, *width, *height);
if (ret < 0) {
ret = avpicture_fill((AVPicture *)pFrameRGB, *frame, PIX_FMT_RGB24, *width, *height);
if (ret < 0) {
skipVal++;
if (skipVal >= sizeOfpbFile) {
debug_error(DEBUG, "__AvParseSkipForXMF : MThd Header is not found!\n");
skipVal++;
if (skipVal >= sizeOfpbFile) {
debug_error(DEBUG, "__AvParseSkipForXMF : MThd Header is not found!\n");
- debug_error(DEBUG, "__AvParseSkipForXMF :skipVal(%d) sizeOfpbFile(%d) \n", skipVal, sizeOfpbFile);
+ debug_error(DEBUG, "__AvParseSkipForXMF :skipVal(%lu) sizeOfpbFile(%lu) \n", skipVal, sizeOfpbFile);
/* calculate playback time of this track */
psTrack->dPlayTime = psTrack->dStopTick - psTrack->dStartTick;
/* calculate playback time of this track */
psTrack->dPlayTime = psTrack->dStopTick - psTrack->dStartTick;
- debug_msg(RELEASE, "Play time: %ld\n", psTrack->dPlayTime);
+ debug_msg(RELEASE, "Play time: %u\n", psTrack->dPlayTime);
return AV_MMF_FUNC_SUCCESS;
}
return AV_MMF_FUNC_SUCCESS;
}
- debug_msg(RELEASE, "Play time: %ld\n", psLoad->dPlayTime);
+ debug_msg(RELEASE, "Play time: %u\n", psLoad->dPlayTime);
return AV_MMF_FUNC_SUCCESS;
}
return AV_MMF_FUNC_SUCCESS;
}
/* calculate playback time of this track */
psTrk->dPlayTime = psTrk->dStopTick - psTrk->dStartTick;
/* calculate playback time of this track */
psTrk->dPlayTime = psTrk->dStopTick - psTrk->dStartTick;
- debug_msg(RELEASE, "Play time: %ld\n", psTrk->dPlayTime);
+ debug_msg(RELEASE, "Play time: %u\n", psTrk->dPlayTime);
return AV_MMF_FUNC_SUCCESS;
}
return AV_MMF_FUNC_SUCCESS;
}
psLoad->dStartTime = psTrack->dStartTick;
psLoad->dTimeBase = psTrack->dTimeBase;
psLoad->dStartTime = psTrack->dStartTick;
psLoad->dTimeBase = psTrack->dTimeBase;
- debug_msg(RELEASE, "Play time: %ld\n", psLoad->dPlayTime);
+ debug_msg(RELEASE, "Play time: %u\n", psLoad->dPlayTime);
return AV_MMF_FUNC_SUCCESS;
}
return AV_MMF_FUNC_SUCCESS;
}
psLoad->dStartTime = psTrack->dStartTick;
psLoad->dTimeBase = psTrack->dTimeBase;
psLoad->dStartTime = psTrack->dStartTick;
psLoad->dTimeBase = psTrack->dTimeBase;
- debug_msg(RELEASE, "Play time: %ld\n", psLoad->dPlayTime);
+ debug_msg(RELEASE, "Play time: %u\n", psLoad->dPlayTime);
return AV_MMF_FUNC_SUCCESS;
}
return AV_MMF_FUNC_SUCCESS;
}
/* check playback time */
if (sdResult != AV_MMF_FUNC_SUCCESS) return sdResult;
/* check playback time */
if (sdResult != AV_MMF_FUNC_SUCCESS) return sdResult;
- debug_msg(RELEASE, "SUM %ld\n", psLoad_Info->dPlayTime * psLoad_Info->dTimeBase);
+ debug_msg(RELEASE, "SUM %u\n", psLoad_Info->dPlayTime * psLoad_Info->dTimeBase);
if ((psLoad_Info->dPlayTime * psLoad_Info->dTimeBase) <= AV_MMF_PLAY_TIME_MIN) {
return AV_MMF_ERR_SLENGTH;
if ((psLoad_Info->dPlayTime * psLoad_Info->dTimeBase) <= AV_MMF_PLAY_TIME_MIN) {
return AV_MMF_ERR_SLENGTH;
id3v2TagLen = pInfo->tagV2Info.tagLen;
id3v2TagLen = pInfo->tagV2Info.tagLen;
- debug_msg(RELEASE, "id3v2TagLen(%d)\n", id3v2TagLen);
+ debug_msg(RELEASE, "id3v2TagLen(%lu)\n", id3v2TagLen);
if (id3v2TagLen) {
if (mmfile_seek(hFile, id3v2TagLen, SEEK_SET) < 0) {
if (id3v2TagLen) {
if (mmfile_seek(hFile, id3v2TagLen, SEEK_SET) < 0) {
pInfo->datafileLen = pInfo->fileLen - pInfo->headerPos;
frameLen = pInfo->frameSize;
if (frameLen) {
pInfo->datafileLen = pInfo->fileLen - pInfo->headerPos;
frameLen = pInfo->frameSize;
if (frameLen) {
- debug_msg(RELEASE, "<<< frameLen=[%d] >>> \n", frameLen);
+ debug_msg(RELEASE, "<<< frameLen=[%lu] >>> \n", frameLen);
#ifndef __MMFILE_NEW_FRAME_FUNC /* FIXME : what purpose to do this? */
/* Account for loss of precision in the frame length calculation*/
#ifndef __MMFILE_NEW_FRAME_FUNC /* FIXME : what purpose to do this? */
/* Account for loss of precision in the frame length calculation*/
return -1;
}
if (index > (bufLen - minLen)) {
return -1;
}
if (index > (bufLen - minLen)) {
- debug_warning(DEBUG, "Mp3 file sync is not found : index(%d) bufLen(%d), minLen(%d)\n", index, bufLen, minLen);
+ debug_warning(DEBUG, "Mp3 file sync is not found : index(%u) bufLen(%lu), minLen(%lu)\n", index, bufLen, minLen);
} else {
__AvGetMp3FrameSize(pInfo);
pInfo->datafileLen = pInfo->fileLen - pInfo->headerPos;
} else {
__AvGetMp3FrameSize(pInfo);
pInfo->datafileLen = pInfo->fileLen - pInfo->headerPos;
- debug_msg(RELEASE, "Mp3 File FrameSize (%d) pInfo->headerPos(%d)\n", pInfo->frameSize, pInfo->headerPos);
+ debug_msg(RELEASE, "Mp3 File FrameSize (%d) pInfo->headerPos(%ld)\n", pInfo->frameSize, pInfo->headerPos);
}
if (mmfile_seek(hFile, -(MP3TAGINFO_SIZE + TAGV1_SEEK_GAP), SEEK_END) < 0)
}
if (mmfile_seek(hFile, -(MP3TAGINFO_SIZE + TAGV1_SEEK_GAP), SEEK_END) < 0)