[FFmpeg-cvslog] avcodec/mlpenc: remove not needed buf_size checks
Paul B Mahol
git at videolan.org
Sun Sep 5 12:45:54 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 5 11:42:30 2021 +0200| [d8863013a8ba8967b88c706133ef41cb6ed544cb] | committer: Paul B Mahol
avcodec/mlpenc: remove not needed buf_size checks
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8863013a8ba8967b88c706133ef41cb6ed544cb
---
libavcodec/mlpenc.c | 5 -----
1 file changed, 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;
More information about the ffmpeg-cvslog
mailing list