mirror of
https://github.com/horgh/videostreamer.git
synced 2025-09-26 20:41:31 +08:00
Merge pull request #12 from sergeydobrodey/patch-1
videostreamer.c: dont call avformat_free_context
This commit is contained in:
@@ -114,8 +114,7 @@ vs_destroy_input(struct VSInput * const input)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (input->format_ctx) {
|
if (input->format_ctx) {
|
||||||
avformat_close_input(&input->format_ctx);
|
avformat_close_input(&input->format_ctx);
|
||||||
avformat_free_context(input->format_ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(input);
|
free(input);
|
||||||
|
Reference in New Issue
Block a user