mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/supenc: Remove some unneeded casts.
This commit is contained in:
parent
406f8d9c9a
commit
93b967157d
@ -32,10 +32,10 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
uint32_t pts = 0, dts = 0;
|
uint32_t pts = 0, dts = 0;
|
||||||
|
|
||||||
if (pkt->pts != AV_NOPTS_VALUE) {
|
if (pkt->pts != AV_NOPTS_VALUE) {
|
||||||
pts = (uint32_t)pkt->pts;
|
pts = pkt->pts;
|
||||||
}
|
}
|
||||||
if (pkt->dts != AV_NOPTS_VALUE) {
|
if (pkt->dts != AV_NOPTS_VALUE) {
|
||||||
dts = (uint32_t)pkt->dts;
|
dts = pkt->dts;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -46,8 +46,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
size_t len = AV_RB16(data + 1) + 3;
|
size_t len = AV_RB16(data + 1) + 3;
|
||||||
|
|
||||||
if (len > size) {
|
if (len > size) {
|
||||||
av_log(s, AV_LOG_ERROR, "Not enough data, skipping %d bytes\n",
|
av_log(s, AV_LOG_ERROR, "Not enough data, skipping %"SIZE_SPECIFIER" bytes\n",
|
||||||
(int)size);
|
size);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,8 +63,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
av_log(s, AV_LOG_ERROR, "Skipping %d bytes after last segment in frame\n",
|
av_log(s, AV_LOG_ERROR, "Skipping %"SIZE_SPECIFIER" bytes after last segment in frame\n",
|
||||||
(int)size);
|
size);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user