History

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.

Andreas Rheinhardt committed 4 years ago

Commit 8b494361 parent 42140011 file · +0 −3Browse files

Unified · Split

libavcodec/vp8.c+0−3
@@ -2826,9 +2826,6 @@ av_cold int ff_vp8_decode_free(AVCodecContext *avctx) · 2825 unmodified lines
2826 VP8Context *s = avctx->priv_data;2826 VP8Context *s = avctx->priv_data;
2827 int i;2827 int i;
2828 2828
2829 if (!s)
2830 return 0;
2831
2832 vp8_decode_flush_impl(avctx, 1);2829 vp8_decode_flush_impl(avctx, 1);
2833 for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++)2830 for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++)
2834 av_frame_free(&s->frames[i].tf.f);2831 av_frame_free(&s->frames[i].tf.f);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t