Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal