avformat_close_input() vs avformat_free_context()
Author: vtorriCreated Apr 30, 2023Updated Apr 12, 2026
to free the context format resource, `avformat_close_input()` is used. But the doc says explicitely to use `avformat_free_context()` for this task. so why is `avformat_close_input()` used ?
Source: leandromoreira/ffmpeg-libav-tutorial