mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
mxfdec: Employ correct printf conversion specifiers for POSIX int types.
Signed-off-by: Jean First <jeanfirst@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
feaa40020b
commit
4fbd3e89e7
@ -468,15 +468,18 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
|
|||||||
/* some files don'thave FooterPartition set in every partition */
|
/* some files don'thave FooterPartition set in every partition */
|
||||||
if (footer_partition) {
|
if (footer_partition) {
|
||||||
if (mxf->footer_partition && mxf->footer_partition != footer_partition) {
|
if (mxf->footer_partition && mxf->footer_partition != footer_partition) {
|
||||||
av_log(mxf->fc, AV_LOG_ERROR, "inconsistent FooterPartition value: %li != %li\n",
|
av_log(mxf->fc, AV_LOG_ERROR,
|
||||||
|
"inconsistent FooterPartition value: %"PRIu64" != %"PRIu64"\n",
|
||||||
mxf->footer_partition, footer_partition);
|
mxf->footer_partition, footer_partition);
|
||||||
} else {
|
} else {
|
||||||
mxf->footer_partition = footer_partition;
|
mxf->footer_partition = footer_partition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
av_dlog(mxf->fc, "PartitionPack: ThisPartition = 0x%lx, PreviousPartition = 0x%lx, "
|
av_dlog(mxf->fc,
|
||||||
"FooterPartition = 0x%lx, IndexSID = %i, BodySID = %i\n",
|
"PartitionPack: ThisPartition = 0x%"PRIX64
|
||||||
|
", PreviousPartition = 0x%"PRIX64", "
|
||||||
|
"FooterPartition = 0x%"PRIX64", IndexSID = %i, BodySID = %i\n",
|
||||||
partition->this_partition,
|
partition->this_partition,
|
||||||
partition->previous_partition, footer_partition,
|
partition->previous_partition, footer_partition,
|
||||||
partition->index_sid, partition->body_sid);
|
partition->index_sid, partition->body_sid);
|
||||||
@ -957,7 +960,8 @@ static int mxf_absolute_bodysid_offset(MXFContext *mxf, int body_sid, int64_t of
|
|||||||
offset -= p->essence_length;
|
offset -= p->essence_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_log(mxf->fc, AV_LOG_ERROR, "failed to find absolute offset of %lx in BodySID %i - partial file?\n",
|
av_log(mxf->fc, AV_LOG_ERROR,
|
||||||
|
"failed to find absolute offset of %"PRIX64" in BodySID %i - partial file?\n",
|
||||||
offset_in, body_sid);
|
offset_in, body_sid);
|
||||||
|
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
@ -1597,7 +1601,8 @@ static void mxf_compute_essence_containers(MXFContext *mxf)
|
|||||||
if (p->essence_length < 0) {
|
if (p->essence_length < 0) {
|
||||||
/* next ThisPartition < essence_offset */
|
/* next ThisPartition < essence_offset */
|
||||||
p->essence_length = 0;
|
p->essence_length = 0;
|
||||||
av_log(mxf->fc, AV_LOG_ERROR, "partition %i: bad ThisPartition = %lx\n",
|
av_log(mxf->fc, AV_LOG_ERROR,
|
||||||
|
"partition %i: bad ThisPartition = %"PRIX64"\n",
|
||||||
x+1, mxf->partitions[x+1].this_partition);
|
x+1, mxf->partitions[x+1].this_partition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user