summaryrefslogtreecommitdiff
path: root/libavcodec/dvenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-25 05:36:22 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-03-30 12:36:31 +0200
commitddd0f5dbe9ff0542ba9438e593c31284635b412f (patch)
tree46f692290577bd22b6714a1eca30818a1e038a8f /libavcodec/dvenc.c
parent3183eda0fa4861e88c02150b887e2945839a58a1 (diff)
downloadffmpeg-ddd0f5dbe9ff0542ba9438e593c31284635b412f.tar.gz
avcodec/dvenc: Remove dead error message
The PutBits API checks the available space before every write, so this check for overread is dead. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/dvenc.c')
-rw-r--r--libavcodec/dvenc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index 233e2b68c7..134315a834 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -980,11 +980,6 @@ static int dv_encode_video_segment(AVCodecContext *avctx, void *arg)
int size = pbs[j].size_in_bits >> 3;
flush_put_bits(&pbs[j]);
pos = put_bits_count(&pbs[j]) >> 3;
- if (pos > size) {
- av_log(avctx, AV_LOG_ERROR,
- "bitstream written beyond buffer size\n");
- return -1;
- }
memset(pbs[j].buf + pos, 0xff, size - pos);
}