Skip to content

Commit

Permalink
Close input here.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 27, 2024
1 parent b0252e8 commit 8f3962b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av/av_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ static av_t *open_input(char *url, avioformat_const AVInputFormat *format,
caml_acquire_runtime_system();

if (err < 0) {
avformat_free_context(av->format_context);
avformat_close_input(&av->format_context);
if (av->interrupt_cb != Val_none) {
caml_remove_generational_global_root(&av->interrupt_cb);
av->interrupt_cb = Val_none;
Expand Down

0 comments on commit 8f3962b

Please sign in to comment.