Unified · Split
| @@ -86,8 +86,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], · 85 unmodified lines | |||
| 86 | 86 | ||
| 87 | end: | 87 | end: |
| 88 | avcodec_close(codec_ctx); | 88 | avcodec_close(codec_ctx); |
| 89 | if (format_ctx) | 89 | avformat_close_input(&format_ctx); |
| 90 | avformat_close_input(&format_ctx); | ||
| 91 | av_freep(&frame); | 90 | av_freep(&frame); |
| 92 | 91 | ||
| 93 | if (ret < 0) | 92 | if (ret < 0) |