aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp8.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-08 14:15:06 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-09 06:52:41 +0100
commit8b49436452bb99f70da24a254ef4cd45d0dbd496 (patch)
treed0248832b4783bd48b92c0773c13a9dff9bf06ab /libavcodec/vp8.c
parent42140010a2abcfe5330dcde546a827be60ab0649 (diff)
downloadffmpeg-8b49436452bb99f70da24a254ef4cd45d0dbd496.tar.gz
avcodec/vp8: Remove always-false check
Since e9b66175793e5c2af19beefe8e143f6e4901b5df a codec's close function is never ever called for a codec whose init function has not been called; in particular, it is never ever called if the AVCodecContext's private data has not been allocated. Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index a70d94bd82..c9d9117528 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2826,9 +2826,6 @@ av_cold int ff_vp8_decode_free(AVCodecContext *avctx)
VP8Context *s = avctx->priv_data;
int i;
- if (!s)
- return 0;
-
vp8_decode_flush_impl(avctx, 1);
for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++)
av_frame_free(&s->frames[i].tf.f);