[ffmpeg] Fix for missing av_dict_free() function when using an external FFMPEG library