add ff_hevc_unref_old_refs function