Skip to content

Commit

Permalink
Bug 1357873 - Fix format warning in omx-plugin; r=cpearce
Browse files Browse the repository at this point in the history
Use printf macros to fix format warnings on AArch64.
  • Loading branch information
Jim Chen committed May 1, 2017
1 parent a4925f9 commit 55f9cd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/omx-plugin/OmxPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ bool OmxDecoder::Init()
int64_t durationUs;
if (videoTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) {
if (durationUs < 0)
LOG("video duration %lld should be nonnegative", durationUs);
LOG("video duration %" PRId64 " should be nonnegative", durationUs);
if (durationUs > totalDurationUs)
totalDurationUs = durationUs;
}
Expand Down Expand Up @@ -536,7 +536,7 @@ bool OmxDecoder::Init()
int64_t durationUs;
if (audioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) {
if (durationUs < 0)
LOG("audio duration %lld should be nonnegative", durationUs);
LOG("audio duration %" PRId64 " should be nonnegative", durationUs);
if (durationUs > totalDurationUs)
totalDurationUs = durationUs;
}
Expand Down Expand Up @@ -913,7 +913,7 @@ bool OmxDecoder::ReadVideo(VideoFrame *aFrame, int64_t aSeekTimeUs,
}

if (timeUs < 0) {
LOG("frame time %lld must be nonnegative", timeUs);
LOG("frame time %" PRId64 " must be nonnegative", timeUs);
return false;
}

Expand Down Expand Up @@ -977,7 +977,7 @@ bool OmxDecoder::ReadAudio(AudioFrame *aFrame, int64_t aSeekTimeUs)
}

if (timeUs < 0) {
LOG("frame time %lld must be nonnegative", timeUs);
LOG("frame time %" PRId64 " must be nonnegative", timeUs);
return false;
}

Expand Down

0 comments on commit 55f9cd1

Please sign in to comment.