diff --git a/src/filescanner_ffmpeg.c b/src/filescanner_ffmpeg.c index 148c5a9d..870f02ec 100644 --- a/src/filescanner_ffmpeg.c +++ b/src/filescanner_ffmpeg.c @@ -364,6 +364,9 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi) } ret = avformat_open_input(&ctx, path, NULL, &options); + + if (options) + av_dict_free(&options); #else ret = av_open_input_file(&ctx, path, NULL, 0, NULL); #endif