mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
Fix memleak in filescanner_ffmpeg arising for ffmpeg versions without icy support
This commit is contained in:
parent
0f1a27641f
commit
be21482d7b
@ -364,6 +364,9 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = avformat_open_input(&ctx, path, NULL, &options);
|
ret = avformat_open_input(&ctx, path, NULL, &options);
|
||||||
|
|
||||||
|
if (options)
|
||||||
|
av_dict_free(&options);
|
||||||
#else
|
#else
|
||||||
ret = av_open_input_file(&ctx, path, NULL, 0, NULL);
|
ret = av_open_input_file(&ctx, path, NULL, 0, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user