summaryrefslogtreecommitdiff
path: root/libavcodec/mlpenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-09-05 11:42:30 +0200
committerPaul B Mahol <onemda@gmail.com>2021-09-05 11:44:50 +0200
commitd8863013a8ba8967b88c706133ef41cb6ed544cb (patch)
tree35f2c2c354feb929761819b85e8d7c3cfc9b5ae1 /libavcodec/mlpenc.c
parent85b9b9695775156c3ade9860ceca7fc9d408ae3f (diff)
avcodec/mlpenc: remove not needed buf_size checks
Diffstat (limited to 'libavcodec/mlpenc.c')
-rw-r--r--libavcodec/mlpenc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index ef69d246ab..7920eb76df 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -1186,16 +1186,11 @@ static int write_access_unit(MLPEncodeContext *ctx, uint8_t *buf,
unsigned int substr;
int total_length;
- if (buf_size < 4)
- return AVERROR(EINVAL);
-
/* Frame header will be written at the end. */
buf += 4;
buf_size -= 4;
if (restart_frame) {
- if (buf_size < 28)
- return AVERROR(EINVAL);
write_major_sync(ctx, buf, buf_size);
buf += 28;
buf_size -= 28;