aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-01-24 13:08:27 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-01-24 13:08:27 +0100
commit93b967157d27f7394eb086d5df51078669c308ce (patch)
tree8ab616bafa518ec2a3de464e141ad085fd3d81ee
parent406f8d9c9a10267299d6eefd0672bd4f4c9342b4 (diff)
downloadffmpeg-93b967157d27f7394eb086d5df51078669c308ce.tar.gz
lavf/supenc: Remove some unneeded casts.
-rw-r--r--libavformat/supenc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/supenc.c b/libavformat/supenc.c
index f5f6b58c87..643dda5ffc 100644
--- a/libavformat/supenc.c
+++ b/libavformat/supenc.c
@@ -32,10 +32,10 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
uint32_t pts = 0, dts = 0;
if (pkt->pts != AV_NOPTS_VALUE) {
- pts = (uint32_t)pkt->pts;
+ pts = pkt->pts;
}
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;
if (len > size) {
- av_log(s, AV_LOG_ERROR, "Not enough data, skipping %d bytes\n",
- (int)size);
+ av_log(s, AV_LOG_ERROR, "Not enough data, skipping %"SIZE_SPECIFIER" bytes\n",
+ size);
return AVERROR_INVALIDDATA;
}
@@ -63,8 +63,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
}
if (size > 0) {
- av_log(s, AV_LOG_ERROR, "Skipping %d bytes after last segment in frame\n",
- (int)size);
+ av_log(s, AV_LOG_ERROR, "Skipping %"SIZE_SPECIFIER" bytes after last segment in frame\n",
+ size);
return AVERROR_INVALIDDATA;
}