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.
Unified · Split
| @@ -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); |