mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
Fix memleak in filescanner_ffmpeg arising for ffmpeg versions without icy support
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user