change check for av_dict_set success