aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-01 15:31:01 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-05 02:15:59 +0200
commit23411e6dcd3e610ac59cf6967c89115bcccb8d2e (patch)
tree5f31815876293fdc22e1924fed0a47846250d56d /libavcodec
parent91e192c3a09ebe0529512215e9b8c4acde74381d (diff)
downloadffmpeg-23411e6dcd3e610ac59cf6967c89115bcccb8d2e.tar.gz
avcodec/sbcdec: Remove always-false check
We never guard against a user freeing/stealing the private context; and returning AVERROR(EIO) is inappropriate. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sbcdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/sbcdec.c b/libavcodec/sbcdec.c
index 3fac2f5016..fd7c2e5e80 100644
--- a/libavcodec/sbcdec.c
+++ b/libavcodec/sbcdec.c
@@ -343,9 +343,6 @@ static int sbc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
SBCDecContext *sbc = avctx->priv_data;
int ret, frame_length;
- if (!sbc)
- return AVERROR(EIO);
-
frame_length = sbc_unpack_frame(avpkt->data, &sbc->frame, avpkt->size);
if (frame_length <= 0)
return frame_length;