videostreamer.c: dont call avformat_free_context

avformat_close_input  frees context and all its contents and set it to NULL
https://www.ffmpeg.org/doxygen/3.3/group__lavf__decoding.html#gae804b99aec044690162b8b9b110236a4
This commit is contained in:
Sergey Dobrodey 2019-07-18 18:13:13 +03:00 committed by GitHub
parent 5eadfd6fab
commit 16dde98b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,8 +114,7 @@ vs_destroy_input(struct VSInput * const input)
}
if (input->format_ctx) {
avformat_close_input(&input->format_ctx);
avformat_free_context(input->format_ctx);
avformat_close_input(&input->format_ctx);
}
free(input);