You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -343,9 +343,6 @@ static int sbc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
SBCDecContext *sbc = avctx->priv_data;
|
SBCDecContext *sbc = avctx->priv_data;
|
||||||
int ret, frame_length;
|
int ret, frame_length;
|
||||||
|
|
||||||
if (!sbc)
|
|
||||||
return AVERROR(EIO);
|
|
||||||
|
|
||||||
frame_length = sbc_unpack_frame(avpkt->data, &sbc->frame, avpkt->size);
|
frame_length = sbc_unpack_frame(avpkt->data, &sbc->frame, avpkt->size);
|
||||||
if (frame_length <= 0)
|
if (frame_length <= 0)
|
||||||
return frame_length;
|
return frame_length;
|
||||||
|
Reference in New Issue
Block a user