Fix logf warnings in more codecs

Change-Id: I7e83a9979aedadf3b7c2b162a8202efdc6227e88
This commit is contained in:
Moshe Piekarski 2020-06-30 04:54:05 -04:00 committed by Franklin Wei
parent 08c6f9104c
commit 9cf2492407
2 changed files with 7 additions and 6 deletions

View file

@ -91,7 +91,7 @@ enum codec_status codec_run(void)
buffer=ci->request_buffer(&n, FAAD_BYTE_BUFFER_SIZE); buffer=ci->request_buffer(&n, FAAD_BYTE_BUFFER_SIZE);
bread = NeAACDecInit(decoder, buffer, n, &s, &c); bread = NeAACDecInit(decoder, buffer, n, &s, &c);
if (bread < 0) { if (bread < 0) {
LOGF("FAAD: DecInit: %ld, %d\n", bread, decoder->object_type); LOGF("FAAD: DecInit: %ld, %d\n", (long int)bread, decoder->object_type);
return CODEC_ERROR; return CODEC_ERROR;
} }
ci->advance_buffer(bread); ci->advance_buffer(bread);

View file

@ -166,7 +166,7 @@ static int64_t seek_backwards(ogg_sync_state *oy, ogg_page *og,
begin = 0; begin = 0;
time++; time++;
} else { } else {
LOGF("Can't seek that early:%lld\n",begin); LOGF("Can't seek that early:%lld\n",(long long int)begin);
return -3; /* too early */ return -3; /* too early */
} }
} }
@ -206,7 +206,8 @@ static int64_t seek_backwards(ogg_sync_state *oy, ogg_page *og,
} else if (lastgranule > wantedpos) { /*too late, seek more*/ } else if (lastgranule > wantedpos) { /*too late, seek more*/
if (offset != -1) { if (offset != -1) {
LOGF("Toolate, returnanyway:%lld,%lld,%lld,%lld\n", LOGF("Toolate, returnanyway:%lld,%lld,%lld,%lld\n",
ret,lastgranule,wantedpos,avgpagelen); (long long int)ret, (long long int)lastgranule,
(long long int)wantedpos, (long long int)avgpagelen);
return ret; return ret;
} }
break; break;
@ -340,7 +341,7 @@ static int opus_seek_page_granule(int64_t pos, int64_t curpos,
ogg_sync_reset(oy); ogg_sync_reset(oy);
LOGF("Seek failed:%lld\n", offset); LOGF("Seek failed:%lld\n", (long long int)offset);
return -1; return -1;
} }
@ -410,8 +411,8 @@ enum codec_status codec_run(void)
skip = MIN(seek_target, SEEK_REWIND); skip = MIN(seek_target, SEEK_REWIND);
seek_target -= skip; seek_target -= skip;
LOGF("Opus seek page:%lld,%lld,%ld\n", LOGF("Opus seek page:%lld,%lld,%ld\n", (long long int)seek_target,
seek_target, page_granule, (long)param); (long long int)page_granule, (long)param);
opus_seek_page_granule(seek_target, page_granule, &oy, &os); opus_seek_page_granule(seek_target, page_granule, &oy, &os);
/* reset the state to help ensure that subsequent packets won't /* reset the state to help ensure that subsequent packets won't
use state set by unrelated packets processed before seek */ use state set by unrelated packets processed before seek */